﻿USE [master]
GO
/****** Object:  Database [ncc-sop]    Script Date: 12/09/2013 11:06:43 ******/
CREATE DATABASE [ncc-sop] ON  PRIMARY 
( NAME = N'ncc-sop', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\ncc-sop.mdf' , SIZE = 3328KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'ncc-sop_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\ncc-sop_log.LDF' , SIZE = 832KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [ncc-sop] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [ncc-sop].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [ncc-sop] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [ncc-sop] SET ANSI_NULLS OFF
GO
ALTER DATABASE [ncc-sop] SET ANSI_PADDING OFF
GO
ALTER DATABASE [ncc-sop] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [ncc-sop] SET ARITHABORT OFF
GO
ALTER DATABASE [ncc-sop] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [ncc-sop] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [ncc-sop] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [ncc-sop] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [ncc-sop] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [ncc-sop] SET CURSOR_DEFAULT  GLOBAL
GO
ALTER DATABASE [ncc-sop] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [ncc-sop] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [ncc-sop] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [ncc-sop] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [ncc-sop] SET  DISABLE_BROKER
GO
ALTER DATABASE [ncc-sop] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [ncc-sop] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [ncc-sop] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [ncc-sop] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [ncc-sop] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [ncc-sop] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [ncc-sop] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [ncc-sop] SET  READ_WRITE
GO
ALTER DATABASE [ncc-sop] SET RECOVERY FULL
GO
ALTER DATABASE [ncc-sop] SET  MULTI_USER
GO
ALTER DATABASE [ncc-sop] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [ncc-sop] SET DB_CHAINING OFF
GO
EXEC sys.sp_db_vardecimal_storage_format N'ncc-sop', N'ON'
GO
USE [ncc-sop]
GO
/****** Object:  Table [dbo].[aspnet_Applications]    Script Date: 12/09/2013 11:06:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_Applications](
	[ApplicationName] [nvarchar](256) NOT NULL,
	[LoweredApplicationName] [nvarchar](256) NOT NULL,
	[ApplicationId] [uniqueidentifier] NOT NULL,
	[Description] [nvarchar](256) NULL,
PRIMARY KEY NONCLUSTERED 
(
	[ApplicationId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
UNIQUE NONCLUSTERED 
(
	[LoweredApplicationName] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
UNIQUE NONCLUSTERED 
(
	[ApplicationName] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].[aspnet_Applications] ([ApplicationName], [LoweredApplicationName], [ApplicationId], [Description]) VALUES (N'/', N'/', N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', NULL)
/****** Object:  Table [dbo].[aspnet_WebEvent_Events]    Script Date: 12/09/2013 11:06:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[aspnet_WebEvent_Events](
	[EventId] [char](32) NOT NULL,
	[EventTimeUtc] [datetime] NOT NULL,
	[EventTime] [datetime] NOT NULL,
	[EventType] [nvarchar](256) NOT NULL,
	[EventSequence] [decimal](19, 0) NOT NULL,
	[EventOccurrence] [decimal](19, 0) NOT NULL,
	[EventCode] [int] NOT NULL,
	[EventDetailCode] [int] NOT NULL,
	[Message] [nvarchar](1024) NULL,
	[ApplicationPath] [nvarchar](256) NULL,
	[ApplicationVirtualPath] [nvarchar](256) NULL,
	[MachineName] [nvarchar](256) NOT NULL,
	[RequestUrl] [nvarchar](1024) NULL,
	[ExceptionType] [nvarchar](256) NULL,
	[Details] [ntext] NULL,
PRIMARY KEY CLUSTERED 
(
	[EventId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Setup_RestorePermissions]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Setup_RestorePermissions]
    @name   sysname
AS
BEGIN
    DECLARE @object sysname
    DECLARE @protectType char(10)
    DECLARE @action varchar(60)
    DECLARE @grantee sysname
    DECLARE @cmd nvarchar(500)
    DECLARE c1 cursor FORWARD_ONLY FOR
        SELECT Object, ProtectType, [Action], Grantee FROM #aspnet_Permissions where Object = @name

    OPEN c1

    FETCH c1 INTO @object, @protectType, @action, @grantee
    WHILE (@@fetch_status = 0)
    BEGIN
        SET @cmd = @protectType + ' ' + @action + ' on ' + @object + ' TO [' + @grantee + ']'
        EXEC (@cmd)
        FETCH c1 INTO @object, @protectType, @action, @grantee
    END

    CLOSE c1
    DEALLOCATE c1
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Setup_RemoveAllRoleMembers]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Setup_RemoveAllRoleMembers]
    @name   sysname
AS
BEGIN
    CREATE TABLE #aspnet_RoleMembers
    (
        Group_name      sysname,
        Group_id        smallint,
        Users_in_group  sysname,
        User_id         smallint
    )

    INSERT INTO #aspnet_RoleMembers
    EXEC sp_helpuser @name

    DECLARE @user_id smallint
    DECLARE @cmd nvarchar(500)
    DECLARE c1 cursor FORWARD_ONLY FOR
        SELECT User_id FROM #aspnet_RoleMembers

    OPEN c1

    FETCH c1 INTO @user_id
    WHILE (@@fetch_status = 0)
    BEGIN
        SET @cmd = 'EXEC sp_droprolemember ' + '''' + @name + ''', ''' + USER_NAME(@user_id) + ''''
        EXEC (@cmd)
        FETCH c1 INTO @user_id
    END

    CLOSE c1
    DEALLOCATE c1
END
GO
/****** Object:  Table [dbo].[aspnet_SchemaVersions]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_SchemaVersions](
	[Feature] [nvarchar](128) NOT NULL,
	[CompatibleSchemaVersion] [nvarchar](128) NOT NULL,
	[IsCurrentVersion] [bit] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[Feature] ASC,
	[CompatibleSchemaVersion] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].[aspnet_SchemaVersions] ([Feature], [CompatibleSchemaVersion], [IsCurrentVersion]) VALUES (N'common', N'1', 1)
INSERT [dbo].[aspnet_SchemaVersions] ([Feature], [CompatibleSchemaVersion], [IsCurrentVersion]) VALUES (N'health monitoring', N'1', 1)
INSERT [dbo].[aspnet_SchemaVersions] ([Feature], [CompatibleSchemaVersion], [IsCurrentVersion]) VALUES (N'membership', N'1', 1)
INSERT [dbo].[aspnet_SchemaVersions] ([Feature], [CompatibleSchemaVersion], [IsCurrentVersion]) VALUES (N'personalization', N'1', 1)
INSERT [dbo].[aspnet_SchemaVersions] ([Feature], [CompatibleSchemaVersion], [IsCurrentVersion]) VALUES (N'profile', N'1', 1)
INSERT [dbo].[aspnet_SchemaVersions] ([Feature], [CompatibleSchemaVersion], [IsCurrentVersion]) VALUES (N'role manager', N'1', 1)
/****** Object:  Table [dbo].[tableRoleMapping]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tableRoleMapping](
	[sn] [int] IDENTITY(1,1) NOT NULL,
	[tableID] [int] NULL,
	[roleID] [int] NULL,
 CONSTRAINT [PK_tableRoleMapping] PRIMARY KEY CLUSTERED 
(
	[sn] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[staging_mapping]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[staging_mapping](
	[overstage] [nvarchar](255) NULL,
	[tstage] [nvarchar](255) NULL,
	[nstage] [nvarchar](255) NULL,
	[mstage] [nvarchar](255) NULL,
	[caType] [nvarchar](255) NULL
) ON [PRIMARY]
GO
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage 0', N'Tis', N'N0', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IA', N'T1', N'N0', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IB', N'T0', N'N1', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IB', N'T1', N'N1', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIA', N'T0', N'N1', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIA', N'T1', N'N1', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIA', N'T2', N'N0', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIB', N'T2', N'N1', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIB', N'T3', N'N0', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIA', N'T0', N'N2', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIA', N'T1', N'N2', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIA', N'T2', N'N2', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIA', N'T3', N'N1', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIA', N'T3', N'N2', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIB', N'T4', N'N0', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIB', N'T4', N'N1', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIB', N'T4', N'N2', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IIIC', N'T', N'N3', N'M0', N'BREAST')
INSERT [dbo].[staging_mapping] ([overstage], [tstage], [nstage], [mstage], [caType]) VALUES (N'stage IV', N'T', N'N', N'M1', N'BREAST')
/****** Object:  Table [dbo].['staging files$']    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].['staging files$'](
	[StagingID] [float] NOT NULL,
	[CA] [nvarchar](255) NULL,
	[staging] [nvarchar](255) NULL,
	[detail] [nvarchar](max) NULL,
	[version] [nvarchar](255) NULL,
	[type] [nvarchar](255) NULL,
PRIMARY KEY CLUSTERED 
(
	[StagingID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (1, N'Breast Cancer', N'TX', N'Primary tumor cannot be assessed.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (2, N'Breast Cancer', N'T0', N'No evidence of primary tumor.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (3, N'Breast Cancer', N'Tis', N'Carcinoma in situ.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (4, N'Breast Cancer', N'Tis (DCIS)', N'Ductal carcinoma in situ.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (5, N'Breast Cancer', N'Tis (LCIS)', N'Lobular carcinoma in situ.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (6, N'Breast Cancer', N'Tis (Paget’s)', N'Paget’s disease of the nipple NOT associated with invasive carcinoma and/or carcinoma in situ (DCIS and/or LCIS) in the underlying breast parenchyma. Carcinomas in the breast parenchyma associated with Paget’s disease are categorized based on the size and characteristics of the parenchymal disease, although the presence of Paget’s disease should still be noted.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (7, N'Breast Cancer', N'T1', N'Tumor ≤20 mm in greatest dimension.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (8, N'Breast Cancer', N'T1mi', N'Tumor ≤1 mm in greatest dimension.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (9, N'Breast Cancer', N'T1a', N'Tumor >1 mm but ≤5 mm in greatest dimension.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (10, N'Breast Cancer', N'T1b', N'Tumor >5 mm but ≤10 mm in greatest dimension.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (11, N'Breast Cancer', N'T1c', N'Tumor >10 mm but ≤20 mm in greatest dimension.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (12, N'Breast Cancer', N'T2', N'Tumor >20 mm but ≤50 mm in greatest dimension.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (13, N'Breast Cancer', N'T3', N'Tumor >50 mm in greatest dimension.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (14, N'Breast Cancer', N'T4', N'Tumor of any size with direct extension to the chest wall and/or to the skin (ulceration or skin nodules).', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (15, N'Breast Cancer', N'T4a', N'Extension to the chest wall, not including only pectoralis muscle adherence/invasion.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (16, N'Breast Cancer', N'T4b', N'Ulceration and/or ipsilateral satellite nodules and/or edema (including peau d’orange) of the skin, which do not meet the criteria for inflammatory carcinoma.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (17, N'Breast Cancer', N'T4c', N'Both T4a and T4b.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (18, N'Breast Cancer', N'T4d', N'Inflammatory carcinoma (see ”Rules for Classification”).', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (19, N'Breast Cancer', N'NX', N'Regional lymph nodes cannot be assessed (previously removed).', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (20, N'Breast Cancer', N'N0', N'No regional lymph node metastases', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (21, N'Breast Cancer', N'N1', N'Metastases to movable ipsilateral level I, II axillary lymph node(s).', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (22, N'Breast Cancer', N'N2', N'Metastases in ipsilateral level I, II axillary lymph nodes that are clinically fixed or matted; or in clinically detected * ipsilateral internal mammary nodes in the absence of clinically evident axillary lymph node metastases.', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (23, N'Breast Cancer', N'N2a', N'Metastases in ipsilateral level I, II axillary lymph nodes fixed to one another (matted) or to other structures.', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (24, N'Breast Cancer', N'N2b', N'Metastases only in clinically detected * ipsilateral internal mammary nodes and in the absence of clinically evident level I, II axillary lymph node metastases.', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (25, N'Breast Cancer', N'N3', N'Metastases in ipsilateral infraclavicular (level III axillary) lymph node(s) with or without level I, II axillary lymph node involvement; or in clinically detected * ipsilateral internal mammary lymph node(s) with clinically evident level I, II axillary lymph node metastases; or metastases in ipsilateral supraclavicular lymph node(s) with or without axillary or internal mammary lymph node involvement.', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (26, N'Breast Cancer', N'N3a', N'Metastases in ipsilateral infraclavicular lymph node(s).', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (27, N'Breast Cancer', N'N3b', N'Metastases in ipsilateral internal mammary lymph node(s) and axillary lymph node(s).', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (28, N'Breast Cancer', N'N3c', N'Metastases in ipsilateral supraclavicular lymph', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (29, N'Breast Cancer', N'M0', N'No clinical or radiographic evidence of distant metastases.', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (30, N'Breast Cancer', N'cM0(i+)', N'No clinical or radiographic evidence of distant metastases, but deposits of molecularly or microscopically detected tumor cells in circulating blood, bone marrow, or other non-regional nodal tissue that are no larger than 0.2 mm in a patient without symptoms or signs of metastases.', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (31, N'Breast Cancer', N'M1', N'Distant detectable metastases as determined by classic clinical and radiographic means and/or histologically proven larger than 0.2 mm.', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (32, N'Breast Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (33, N'Breast Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (34, N'Breast Cancer', N'Tis', N'Carcinoma in situ', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (35, N'Breast Cancer', N'Tis (DCIS)', N'Ductal carcinoma in situ', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (36, N'Breast Cancer', N'Tis (LCIS)', N'Lobular carcinoma in situ', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (37, N'Breast Cancer', N'Tis (Paget''s)', N'Paget''s disease of the nipple with no tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (38, N'Breast Cancer', N'T1', N'Tumor 2 cm or less in greatest dimension', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (39, N'Breast Cancer', N'T1mic', N'Microinvasion 0.1 cm or less in greatest dimension Note!', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (40, N'Breast Cancer', N'T1a', N'Tumor more than 0.1 cm but not more than 0.5 cm in greatest dimension', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (41, N'Breast Cancer', N'T1b', N'Tumor more than 0.5 cm but not more than 1 cm in greatest dimension', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (42, N'Breast Cancer', N'T1c', N'Tumor more than 1 cm but not more than 2 cm in greatest dimension', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (43, N'Breast Cancer', N'T2', N'Tumor more than 2 cm but not more than 5 cm in greatest dimension', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (44, N'Breast Cancer', N'T3', N'Tumor more than 5 cm in greatest dimension', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (45, N'Breast Cancer', N'T4', N'Tumor of any size with direct extension to chest wall or skin', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (46, N'Breast Cancer', N'T4a', N'Extension to chest wall', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (47, N'Breast Cancer', N'T4b', N'Edema (including peau d''orange) or ulceration of the skin of the breast or satellite skin nodules confined to the same breast', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (48, N'Breast Cancer', N'T4c', N'Both (T4a and T4b)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (49, N'Breast Cancer', N'T4d', N'Inflammatory carcinoma Note!', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (50, N'Breast Cancer', N'NX', N'Regional lymph nodes cannot be assessed (e.g. previously removed)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (51, N'Breast Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (52, N'Breast Cancer', N'N1', N'Metastasis to moveable ipsilateral axillary lymph node(s)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (53, N'Breast Cancer', N'N2', N'Metastasis to ipsilateral axillary lymph nodes fixed or matted, or in clinically apparent* ipsilateral internal mammery nodes in the absence of clinically evident axillary lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (54, N'Breast Cancer', N'N2a', N'Metastasis to ipsilateral axillary lymph node(s) fixed to one another or to other structures', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (55, N'Breast Cancer', N'N2b', N'Metastasis only in clinically apparent* ipsilateral internal mammary nodes in the absence of clinically evident axillary lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (56, N'Breast Cancer', N'N3', N'Metastasis in ipsilateral infraclivicular lymph node(s), with or without axillary lymph node involvement, or in clinically apparent* ipsilateral internal mammary lymph nodes in the presence of clinically evident axillary lymph node metastasis; or metatstasis ipsilateral supraclavicular lymph node(s), with or without axillary or internal mammary lymph node or involvement', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (57, N'Breast Cancer', N'N3a', N'Metastasis in ipsilateral infraclivicular lymph node(s)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (58, N'Breast Cancer', N'N3b', N'Metastasis in ipsilateral internal mammary lymph node(s) and axillary lymph node(s)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (59, N'Breast Cancer', N'N3c', N'Metatstasis in ipsilateral supraclavicular lymph node(s)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (60, N'Breast Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (61, N'Breast Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (62, N'Breast Cancer', N'M1', N'Distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (63, N'Gastric Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (64, N'Gastric Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (65, N'Gastric Cancer', N'Tis', N'Carcinoma in situ: intraepithelial tumor without invasion of the lamina propria', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (66, N'Gastric Cancer', N'T1', N'Tumor invades lamina propria or submucosa', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (67, N'Gastric Cancer', N'T2a', N'Tumor invades muscularis propria', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (68, N'Gastric Cancer', N'T2b', N'Tumor invades subserosa', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (69, N'Gastric Cancer', N'T3', N'Tumor penetrates the serosa (visceral peritoneum) without invasion of the adjacent structures Note!', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (70, N'Gastric Cancer', N'T4', N'Tumor invades adjacent structures. Note!', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (71, N'Gastric Cancer', N'NX', N'Regional lymph node(s) cannot be assessed', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (72, N'Gastric Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (73, N'Gastric Cancer', N'N1', N'Metastasis in 1 to 6 regional lymph nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (74, N'Gastric Cancer', N'N2', N'Metastasis in 7 to 15 regional lymph nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (75, N'Gastric Cancer', N'N3', N'Metastasis in more than 15 regional lymph nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (76, N'Gastric Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (77, N'Gastric Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (78, N'Gastric Cancer', N'M1', N'Distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (79, N'Gastric Cancer', N'0', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (80, N'Gastric Cancer', N'IA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (81, N'Gastric Cancer', N'IB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (82, N'Gastric Cancer', N'II', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (83, N'Gastric Cancer', N'IIIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (84, N'Gastric Cancer', N'IIIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (85, N'Gastric Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (86, N'Breast Cancer', N'0', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (87, N'Breast Cancer', N'I', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (88, N'Breast Cancer', N'IIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (89, N'Breast Cancer', N'IIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (90, N'Breast Cancer', N'IIIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (91, N'Breast Cancer', N'IIIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (92, N'Breast Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (93, N'Breast Cancer', N'0', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (94, N'Breast Cancer', N'I', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (95, N'Breast Cancer', N'IIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (96, N'Breast Cancer', N'IIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (97, N'Breast Cancer', N'IIIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (98, N'Breast Cancer', N'IIIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (99, N'Breast Cancer', N'IIIC', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (100, N'Breast Cancer', N'IV', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (101, N'Gastric Cancer', N'TX', NULL, N'ajcc_7', N't_stage')
GO
print 'Processed 100 total records'
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (102, N'Gastric Cancer', N'T0', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (103, N'Gastric Cancer', N'Tis', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (104, N'Gastric Cancer', N'T1', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (105, N'Gastric Cancer', N'T1a', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (106, N'Gastric Cancer', N'T1b', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (107, N'Gastric Cancer', N'T2', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (108, N'Gastric Cancer', N'T3', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (109, N'Gastric Cancer', N'T4', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (110, N'Gastric Cancer', N'T4a', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (111, N'Gastric Cancer', N'T4b', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (112, N'Gastric Cancer', N'NX', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (113, N'Gastric Cancer', N'N0', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (114, N'Gastric Cancer', N'N1', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (115, N'Gastric Cancer', N'N2', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (116, N'Gastric Cancer', N'N3', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (117, N'Gastric Cancer', N'N3a', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (118, N'Gastric Cancer', N'N3b', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (119, N'Gastric Cancer', N'M0', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (120, N'Gastric Cancer', N'M1', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (121, N'Gastric Cancer', N'0', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (122, N'Gastric Cancer', N'IA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (123, N'Gastric Cancer', N'IB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (124, N'Gastric Cancer', N'II', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (125, N'Gastric Cancer', N'IIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (126, N'Gastric Cancer', N'IIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (127, N'Gastric Cancer', N'IIIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (128, N'Gastric Cancer', N'IIIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (129, N'Gastric Cancer', N'IIIC', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (130, N'Gastric Cancer', N'IV', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (131, N'Rectal Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (132, N'Rectal Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (133, N'Rectal Cancer', N'Tis', N'Carcinoma in situ: intraepithelial or invasion of the lamina propria [Tis includes cancer cells confined within the glandular basement membrane (intraepithelial) or lamina propria (intramucosal) with no extension through the muscularis mucosae into the submucosa.]', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (134, N'Rectal Cancer', N'T1', N'Tumor invades the submucosa', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (135, N'Rectal Cancer', N'T2', N'Tumor invades the muscularis propria', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (136, N'Rectal Cancer', N'T3', N'Tumor invades through the muscularis propria into the subserosa or into non-peritonealized pericolic or perirectal tissues', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (137, N'Rectal Cancer', N'T4', N'Tumor directly invades other organs or structures and/or perforates the visceral peritoneum (Direct invasion of other organs or structures includes invasion of other segments of colorectum by way of serosa; for example, invasion of the sigmoid colon by a carcinoma of the cecum.) Note! ', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (138, N'Rectal Cancer', N'NX', N'Regional lymph nodes cannot be assessed', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (139, N'Rectal Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (140, N'Rectal Cancer', N'N1', N'Metastasis in one to three pericolic or perirectal lymph nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (141, N'Rectal Cancer', N'N2', N'Metastasis in four or more pericolic or perirectal lymph nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (142, N'Rectal Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (143, N'Rectal Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (144, N'Rectal Cancer', N'M1', N'Distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (145, N'Rectal Cancer', N'0', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (146, N'Rectal Cancer', N'I', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (147, N'Rectal Cancer', N'IIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (148, N'Rectal Cancer', N'IIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (149, N'Rectal Cancer', N'IIIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (150, N'Rectal Cancer', N'IIIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (151, N'Rectal Cancer', N'IIIC', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (152, N'Rectal Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (153, N'Rectal Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (154, N'Rectal Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (155, N'Rectal Cancer', N'Tis', N'Carcinoma in situ: intraepithelial or invasion of the lamina propria [Tis includes cancer cells confined within the glandular basement membrane (intraepithelial) or lamina propria (intramucosal) with no extension through the muscularis mucosae into the submucosa.]', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (156, N'Rectal Cancer', N'T1', N'Tumor invades the submucosa', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (157, N'Rectal Cancer', N'T2', N'Tumor invades the muscularis propria', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (158, N'Rectal Cancer', N'T3', N'Tumor invades through the muscularis propria into the subserosa or into non-peritonealized pericolic or perirectal tissues', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (159, N'Rectal Cancer', N'T4a', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (160, N'Rectal Cancer', N'T4b', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (161, N'Rectal Cancer', N'NX', N'Regional lymph nodes cannot be assessed', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (162, N'Rectal Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (163, N'Rectal Cancer', N'N1', N'Metastasis in one to three pericolic or perirectal lymph nodes', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (164, N'Rectal Cancer', N'N2', N'Metastasis in four or more pericolic or perirectal lymph nodes', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (165, N'Rectal Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (166, N'Rectal Cancer', N'M0', N'No distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (167, N'Rectal Cancer', N'M1', N'Distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (168, N'Rectal Cancer', N'0', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (169, N'Rectal Cancer', N'I', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (170, N'Rectal Cancer', N'IIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (171, N'Rectal Cancer', N'IIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (172, N'Rectal Cancer', N'IIIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (173, N'Rectal Cancer', N'IIIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (174, N'Rectal Cancer', N'IIIC', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (175, N'Rectal Cancer', N'IV', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (176, N'Colon Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (177, N'Colon Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (178, N'Colon Cancer', N'Tis', N'Carcinoma in situ: intraepithelial or invasion of the lamina propria [Tis includes cancer cells confined within the glandular basement membrane (intraepithelial) or lamina propria (intramucosal) with no extension through the muscularis mucosae into the submucosa.]', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (179, N'Colon Cancer', N'T1', N'Tumor invades the submucosa', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (180, N'Colon Cancer', N'T2', N'Tumor invades the muscularis propria', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (181, N'Colon Cancer', N'T3', N'Tumor invades through the muscularis propria into the subserosa or into non-peritonealized pericolic or perirectal tissues', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (182, N'Colon Cancer', N'T4', N'Tumor directly invades other organs or structures and/or perforates the visceral peritoneum (Direct invasion of other organs or structures includes invasion of other segments of colorectum by way of serosa; for example, invasion of the sigmoid colon by a carcinoma of the cecum.) Note! ', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (183, N'Colon Cancer', N'NX', N'Regional lymph nodes cannot be assessed', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (184, N'Colon Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (185, N'Colon Cancer', N'N1', N'Metastasis in one to three pericolic or perirectal lymph nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (186, N'Colon Cancer', N'N2', N'Metastasis in four or more pericolic or perirectal lymph nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (187, N'Colon Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (188, N'Colon Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (189, N'Colon Cancer', N'M1', N'Distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (190, N'Colon Cancer', N'0', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (191, N'Colon Cancer', N'I', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (192, N'Colon Cancer', N'IIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (193, N'Colon Cancer', N'IIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (194, N'Colon Cancer', N'IIIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (195, N'Colon Cancer', N'IIIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (196, N'Colon Cancer', N'IIIC', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (197, N'Colon Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (198, N'Colon Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (199, N'Colon Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (200, N'Colon Cancer', N'Tis', N'Carcinoma in situ: intraepithelial or invasion of the lamina propria [Tis includes cancer cells confined within the glandular basement membrane (intraepithelial) or lamina propria (intramucosal) with no extension through the muscularis mucosae into the submucosa.]', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (201, N'Colon Cancer', N'T1', N'Tumor invades the submucosa', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (202, N'Colon Cancer', N'T2', N'Tumor invades the muscularis propria', N'ajcc_7', N't_stage')
GO
print 'Processed 200 total records'
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (203, N'Colon Cancer', N'T3', N'Tumor invades through the muscularis propria into the subserosa or into non-peritonealized pericolic or perirectal tissues', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (204, N'Colon Cancer', N'T4a', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (205, N'Colon Cancer', N'T4b', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (206, N'Colon Cancer', N'NX', N'Regional lymph nodes cannot be assessed', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (207, N'Colon Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (208, N'Colon Cancer', N'N1', N'Metastasis in one to three pericolic or perirectal lymph nodes', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (209, N'Colon Cancer', N'N2', N'Metastasis in four or more pericolic or perirectal lymph nodes', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (210, N'Colon Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (211, N'Colon Cancer', N'M0', N'No distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (212, N'Colon Cancer', N'M1', N'Distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (213, N'Colon Cancer', N'0', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (214, N'Colon Cancer', N'I', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (215, N'Colon Cancer', N'IIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (216, N'Colon Cancer', N'IIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (217, N'Colon Cancer', N'IIIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (218, N'Colon Cancer', N'IIIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (219, N'Colon Cancer', N'IIIC', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (220, N'Colon Cancer', N'IV', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (221, N'Liver Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (222, N'Liver Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (223, N'Liver Cancer', N'T1', N'Solitary tumor without vascular invasion', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (224, N'Liver Cancer', N'T2', N'Solitary tumor with vascular invasion; or multiple tumors none more than 5 cm', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (225, N'Liver Cancer', N'T3', N'Multiple tumors more than 5 cm or tumor involving a major branch of the portal or hepatic vein(s)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (226, N'Liver Cancer', N'T4', N'Tumor(s) with direct invasion of adjacent organs other than the gallbladder or with perforation of visceral peritoneum', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (227, N'Liver Cancer', N'NX', N'Regional lymph nodes cannot be assessed', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (228, N'Liver Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (229, N'Liver Cancer', N'N1', N'Regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (230, N'Liver Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (231, N'Liver Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (232, N'Liver Cancer', N'M1', N'Distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (233, N'Liver Cancer', N'I', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (234, N'Liver Cancer', N'II', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (235, N'Liver Cancer', N'IIIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (236, N'Liver Cancer', N'IIIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (237, N'Liver Cancer', N'IIIC', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (238, N'Liver Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (239, N'Liver Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (240, N'Liver Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (241, N'Liver Cancer', N'T1', N'Solitary tumor without vascular invasion', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (242, N'Liver Cancer', N'T2', N'Solitary tumor with vascular invasion; or multiple tumors none more than 5 cm', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (243, N'Liver Cancer', N'T3a', N'Multiple tumors more than 5 cm or tumor involving a major branch of the portal or hepatic vein(s)', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (244, N'Liver Cancer', N'T3b', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (245, N'Liver Cancer', N'T4', N'Tumor(s) with direct invasion of adjacent organs other than the gallbladder or with perforation of visceral peritoneum', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (246, N'Liver Cancer', N'NX', N'Regional lymph nodes cannot be assessed', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (247, N'Liver Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (248, N'Liver Cancer', N'N1', N'Regional lymph node metastasis', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (249, N'Liver Cancer', N'M0', N'No distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (250, N'Liver Cancer', N'M1', N'Distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (251, N'Liver Cancer', N'I', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (252, N'Liver Cancer', N'II', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (253, N'Liver Cancer', N'IIIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (254, N'Liver Cancer', N'IIIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (255, N'Liver Cancer', N'IIIC', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (256, N'Liver Cancer', N'IVA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (257, N'Liver Cancer', N'IVB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (258, N'Prostate Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (259, N'Prostate Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (260, N'Prostate Cancer', N'T1', N'Clinically inapparent tumor not palpable or visible by imaging', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (261, N'Prostate Cancer', N'T1a', N'Tumor incidental histologic finding in 5% or less of tissue resected', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (262, N'Prostate Cancer', N'T1b', N'Tumor incidental histologic finding in more than 5% of tissue resected', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (263, N'Prostate Cancer', N'T1c', N'Tumor identified by needle biopsy (e.g. because of elevated PSA)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (264, N'Prostate Cancer', N'T2', N'Tumor confined to the prostate', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (265, N'Prostate Cancer', N'T2a', N'Tumor involves one-half of 1 lobe or less.', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (266, N'Prostate Cancer', N'T2b', N'Tumor involves more than one-half of 1 lobe but not both lobes.', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (267, N'Prostate Cancer', N'T2c', N'Tumor involves both lobes.', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (268, N'Prostate Cancer', N'T3', N'Tumor extends through the prostatic capsule', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (269, N'Prostate Cancer', N'T3a', N'Extracapsular extension (unilateral or bilateral)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (270, N'Prostate Cancer', N'T3b', N'Tumor invades the seminal vesicle(s)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (271, N'Prostate Cancer', N'T4', N'Tumor is fixed or invades adjacent structures other than the seminal vesicles: bladder, neck, external sphincter, rectum, levator muscles, and/or pelvic wall', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (272, N'Prostate Cancer', N'pNX', N'Regional nodes not sampled', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (273, N'Prostate Cancer', N'pN0', N'No positive regional nodes', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (274, N'Prostate Cancer', N'pN1', N'Metastasis in regional node(s)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (275, N'Prostate Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (276, N'Prostate Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (277, N'Prostate Cancer', N'M1', N'Distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (278, N'Prostate Cancer', N'M1a', N'Non-regional lymph node(s)', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (279, N'Prostate Cancer', N'M1b', N'Bone(s)', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (280, N'Prostate Cancer', N'M1c', N'Other site(s)', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (281, N'Prostate Cancer', N'I', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (282, N'Prostate Cancer', N'II', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (283, N'Prostate Cancer', N'III', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (284, N'Prostate Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (285, N'Prostate Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (286, N'Prostate Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (287, N'Prostate Cancer', N'T1', N'Clinically inapparent tumor not palpable or visible by imaging', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (288, N'Prostate Cancer', N'T1a', N'Tumor incidental histologic finding in 5% or less of tissue resected', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (289, N'Prostate Cancer', N'T1b', N'Tumor incidental histologic finding in more than 5% of tissue resected', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (290, N'Prostate Cancer', N'T1c', N'Tumor identified by needle biopsy (e.g. because of elevated PSA)', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (291, N'Prostate Cancer', N'T2', N'Tumor confined to the prostate', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (292, N'Prostate Cancer', N'T2a', N'Tumor involves one-half of 1 lobe or less.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (293, N'Prostate Cancer', N'T2b', N'Tumor involves more than one-half of 1 lobe but not both lobes.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (294, N'Prostate Cancer', N'T2c', N'Tumor involves both lobes.', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (295, N'Prostate Cancer', N'T3', N'Tumor extends through the prostatic capsule', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (296, N'Prostate Cancer', N'T3a', N'Extracapsular extension (unilateral or bilateral)', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (297, N'Prostate Cancer', N'T3b', N'Tumor invades the seminal vesicle(s)', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (298, N'Prostate Cancer', N'T4', N'Tumor is fixed or invades adjacent structures other than the seminal vesicles: bladder, neck, external sphincter, rectum, levator muscles, and/or pelvic wall', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (299, N'Prostate Cancer', N'NX', N'Regional nodes not sampled', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (300, N'Prostate Cancer', N'N0', N'No positive regional nodes', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (301, N'Prostate Cancer', N'N1', N'Metastasis in regional node(s)', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (302, N'Prostate Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (303, N'Prostate Cancer', N'M0', N'No distant metastasis', N'ajcc_7', N'm_stage')
GO
print 'Processed 300 total records'
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (304, N'Prostate Cancer', N'M1', N'Distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (305, N'Prostate Cancer', N'M1a', N'Non-regional lymph node(s)', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (306, N'Prostate Cancer', N'M1b', N'Bone(s)', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (307, N'Prostate Cancer', N'M1c', N'Other site(s)', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (308, N'Prostate Cancer', N'I', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (309, N'Prostate Cancer', N'IIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (310, N'Prostate Cancer', N'IIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (311, N'Prostate Cancer', N'III', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (312, N'Prostate Cancer', N'IV', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (313, N'Bladder Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (314, N'Bladder Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (315, N'Bladder Cancer', N'Ta', N'Noninvasive papillary carcinoma', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (316, N'Bladder Cancer', N'Tis', N'Carcinoma in situ: "flat tumor"', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (317, N'Bladder Cancer', N'T1', N'Tumor invades subepithelial connective tissue', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (318, N'Bladder Cancer', N'T2', N'Tumor invades muscle', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (319, N'Bladder Cancer', N'T2a', N'Tumor invades superficial muscle (inner half)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (320, N'Bladder Cancer', N'T2b', N'Tumor invades deep muscle (outer half)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (321, N'Bladder Cancer', N'T3', N'Tumor invades perivesical tissue', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (322, N'Bladder Cancer', N'T3a', N'Microscopically', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (323, N'Bladder Cancer', N'T3b', N'Macroscopically (extravesical mass)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (324, N'Bladder Cancer', N'T4', N'Tumor invades any of the following: prostate, uterus, vagina, pelvic wall, abdominal wall', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (325, N'Bladder Cancer', N'T4a', N'Tumor invades the prostate, uterus, vagina', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (326, N'Bladder Cancer', N'T4b', N'Tumor invades the pelvic wall, abdominal wall', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (327, N'Bladder Cancer', N'NX', N'Regional lymph node(s) cannot be assessed', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (328, N'Bladder Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (329, N'Bladder Cancer', N'N1', N'Metastasis in a single lymph node, 2 cm or less in greatest dimension', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (330, N'Bladder Cancer', N'N2', N'Metastasis in a single lymph node, more than 2 cm but not more than 5 cm in the greatest dimension; or multiple lymph nodes, none more than 5 cm in greatest dimension', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (331, N'Bladder Cancer', N'N3', N'Metastasis in a lymph node more than 5 cm in the greatest dimension', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (332, N'Bladder Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (333, N'Bladder Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (334, N'Bladder Cancer', N'M1', N'Distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (335, N'Bladder Cancer', NULL, NULL, N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (336, N'Bladder Cancer', N'0a', NULL, N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (337, N'Bladder Cancer', N'0is', NULL, N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (338, N'Bladder Cancer', N'I', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (339, N'Bladder Cancer', N'II', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (340, N'Bladder Cancer', N'III', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (341, N'Bladder Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (342, N'Bladder Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (343, N'Bladder Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (344, N'Bladder Cancer', N'Ta', N'Noninvasive papillary carcinoma', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (345, N'Bladder Cancer', N'Tis', N'Carcinoma in situ: "flat tumor"', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (346, N'Bladder Cancer', N'T1', N'Tumor invades subepithelial connective tissue', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (347, N'Bladder Cancer', N'T2', N'Tumor invades muscle', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (348, N'Bladder Cancer', N'T2a', N'Tumor invades superficial muscle (inner half)', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (349, N'Bladder Cancer', N'T2b', N'Tumor invades deep muscle (outer half)', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (350, N'Bladder Cancer', N'T3', N'Tumor invades perivesical tissue', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (351, N'Bladder Cancer', N'T3a', N'Microscopically', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (352, N'Bladder Cancer', N'T3b', N'Macroscopically (extravesical mass)', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (353, N'Bladder Cancer', N'T4', N'Tumor invades any of the following: prostate, uterus, vagina, pelvic wall, abdominal wall', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (354, N'Bladder Cancer', N'T4a', N'Tumor invades the prostate, uterus, vagina', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (355, N'Bladder Cancer', N'T4b', N'Tumor invades the pelvic wall, abdominal wall', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (356, N'Bladder Cancer', N'NX', N'Regional lymph node(s) cannot be assessed', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (357, N'Bladder Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (358, N'Bladder Cancer', N'N1', N'Metastasis in a single lymph node, 2 cm or less in greatest dimension', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (359, N'Bladder Cancer', N'N2', N'Metastasis in a single lymph node, more than 2 cm but not more than 5 cm in the greatest dimension; or multiple lymph nodes, none more than 5 cm in greatest dimension', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (360, N'Bladder Cancer', N'N3', N'Metastasis in a lymph node more than 5 cm in the greatest dimension', N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (361, N'Bladder Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (362, N'Bladder Cancer', N'M0', N'No distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (363, N'Bladder Cancer', N'M1', N'Distant metastasis', N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (364, N'Bladder Cancer', NULL, NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (365, N'Bladder Cancer', N'0a', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (366, N'Bladder Cancer', N'0is', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (367, N'Bladder Cancer', N'I', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (368, N'Bladder Cancer', N'II', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (369, N'Bladder Cancer', N'III', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (370, N'Bladder Cancer', N'IV', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (371, N'Cervix Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (372, N'Cervix Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (373, N'Cervix Cancer', N'Tis', N'Carcinoma in situ', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (374, N'Cervix Cancer', N'I', N'Cervical carcinoma confined to the uterus (extension to the corpus should be disregarded)', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (375, N'Cervix Cancer', N'IA', N'Invasive carcinoma, diagnosed only by microscopy Note!', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (376, N'Cervix Cancer', N'IA1', N'Measured stromal invasion 3.0 mm or less in depth and 7.0 or less in horizontal spread', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (377, N'Cervix Cancer', N'IA2', N'Measured stromal invasion 3.0 mm or less and not more than 5.0 mm with a horizontal spread 7.0 mm or less Note!', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (378, N'Cervix Cancer', N'IB', N'Clinically visible lesion confined to the cervix or microscopic lesion greater than T1a2/IA2', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (379, N'Cervix Cancer', N'IB1', N'Clinically visible lesion 4.0 cm or less in greatest dimension', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (380, N'Cervix Cancer', N'IB2', N'Clinically visible lesion more than 4.0 cm in greatest dimension', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (381, N'Cervix Cancer', N'II', N'Cervical carcinoma invades beyond the uterus but not to the pelvic wall or to the lower third of the vagina', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (382, N'Cervix Cancer', N'IIA', N'Tumor without parametrial invasion', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (383, N'Cervix Cancer', N'IIB', N'Tumor with parametrial invasion', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (384, N'Cervix Cancer', N'III', N'Cervical carcinoma extends to the pelvic wall and/or involves the lower third of the vagina and/or causes hydronephrosis or nonfunctioning kidney', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (385, N'Cervix Cancer', N'IIIA', N'Tumor involves the lower third of the vagina, with no extension to the pelvic wall', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (386, N'Cervix Cancer', N'IIIB', N'Tumor extends to the pelvic wall and/or causes hydronephrosis or a nonfunctioning kidney', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (387, N'Cervix Cancer', N'IVA', N'Tumor invades the mucosa of the bladder or rectum and/or extends beyond the true pelvis', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (388, N'Cervix Cancer', N'IVB', N'Distant metastasis', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (389, N'Ovary Cancer', N'TX', N'Primary tumor cannot be assessed', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (390, N'Ovary Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (391, N'Ovary Cancer', N'I', N'Tumor limited to ovaries (one or both)', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (392, N'Ovary Cancer', N'IA', N'Tumor limited to one ovary; capsule intact, no tumor on ovarian surface, no malignant cells in ascites or peritoneal washings', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (393, N'Ovary Cancer', N'IB', N'Tumor limited to both ovaries; capsules intact, no tumor on ovarian surface, no malignant cells in ascites or peritoneal washings', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (394, N'Ovary Cancer', N'IC', N'Tumor limited to one or both ovaries with any of the following: capsule ruptured, tumor on ovarian surface, malignant cells in ascites or peritoneal washings', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (395, N'Ovary Cancer', N'II', N'Tumor involves one or both ovaries with pelvic extension', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (396, N'Ovary Cancer', N'IIA', N'Extension and/or implants on the uterus and/or tube(s); no malignant cells in ascites or peritoneal washings', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (397, N'Ovary Cancer', N'IIB', N'Extension to other pelvic tissues; no malignant cells in ascites or peritoneal washings', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (398, N'Ovary Cancer', N'IIC', N'Pelvic extension (2a or 2b) with malignant cells in ascites or peritoneal washings', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (399, N'Ovary Cancer', N'III', N'Tumor involves one or both ovaries with microscopically confirmed peritoneal metastasis outside the pelvis and/or regional lymph node metastasis', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (400, N'Ovary Cancer', N'IIIA', N'Microscopic peritoneal metastasis beyond the pelvis', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (401, N'Ovary Cancer', N'IIIB', N'Macroscopic peritoneal metastasis beyond the pelvis 2 cm or less in the greatest dimension', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (402, N'Ovary Cancer', N'IIIC', N'Peritoneal metastasis beyond the pelvis more than 2 cm in the greatest dimension and/or regional lymph node metastasis', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (403, N'Ovary Cancer', N'IV', N'Distant metastasis (excludes peritoneal metastasis)', N'ajcc_6', N'FIGO')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (404, N'Lung Cancer', N'TX', N'Primary tumor cannot be assessed, or tumor proven by the presence of malignant cells in sputum or bronchial washings but not visualized by imaging or bronchoscopy', N'ajcc_6', N't_stage')
GO
print 'Processed 400 total records'
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (405, N'Lung Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (406, N'Lung Cancer', N'Tis', N'Carcinoma in situ', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (407, N'Lung Cancer', N'T1', N'Tumor 3 cm or less in greatest dimension, surrounded by lung or visceral pleura, without bronchoscopic evidence of invasion more proximal than the lobar bronchus (i.e. not in the main bronchus) (The uncommon superficial tumor of any size with its invasive component limited to the bronchial wall, which may extend proximal to the main bronchus, is also classified as T1.)', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (408, N'Lung Cancer', N'T2', N'Tumor with any of the following features of size or extent:', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (409, N'Lung Cancer', N'T3', N'Tumor of any size that directly invades any of the following:', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (410, N'Lung Cancer', N'T4', N'Tumor of any size that invades any of the following:', N'ajcc_6', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (411, N'Lung Cancer', N'N0', N'No regional lymph node metastasis', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (412, N'Lung Cancer', N'N1', N'Metastasis to ipsilateral peribronchial and/or ipsilateral hilar lymph nodes, and intrapulmonary nodes involved by direct extension of the primary tumor', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (413, N'Lung Cancer', N'N2', N'Metastasis in ipsilateral mediastinal and/or subcarinal lymph node(s)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (414, N'Lung Cancer', N'N3', N'Metastasis in contralateral mediastinal, contralateral hilar, ipsilateral or contralateral scalene, or supraclavicular lymph node(s)', N'ajcc_6', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (415, N'Lung Cancer', N'MX', N'Presence of distant metastasis cannot be assessed', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (416, N'Lung Cancer', N'M0', N'No distant metastasis', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (417, N'Lung Cancer', N'M1', N'Distant metastasis, includes separate tumor nodule(s) in a different lobe (ipsilateral or contralateral)', N'ajcc_6', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (418, N'Lung Cancer', N'0', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (419, N'Lung Cancer', N'IA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (420, N'Lung Cancer', N'IB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (421, N'Lung Cancer', N'IIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (422, N'Lung Cancer', N'IIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (423, N'Lung Cancer', N'IIIA', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (424, N'Lung Cancer', N'IIIB', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (425, N'Lung Cancer', N'IV', NULL, N'ajcc_6', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (426, N'Lung Cancer', N'TX', N'Primary tumor cannot be assessed, or tumor proven by the presence of malignant cells in sputum or bronchial washings but not visualized by imaging or bronchoscopy', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (427, N'Lung Cancer', N'T0', N'No evidence of primary tumor', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (428, N'Lung Cancer', N'Tis', N'Carcinoma in situ', N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (429, N'Lung Cancer', N'T1', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (430, N'Lung Cancer', N'T1a', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (431, N'Lung Cancer', N'T1b', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (432, N'Lung Cancer', N'T2', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (433, N'Lung Cancer', N'T2a', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (434, N'Lung Cancer', N'T2b', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (435, N'Lung Cancer', N'T3', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (436, N'Lung Cancer', N'T4', NULL, N'ajcc_7', N't_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (437, N'Lung Cancer', N'NX', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (438, N'Lung Cancer', N'N0', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (439, N'Lung Cancer', N'N1', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (440, N'Lung Cancer', N'N2', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (441, N'Lung Cancer', N'N3', NULL, N'ajcc_7', N'n_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (442, N'Lung Cancer', N'MX', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (443, N'Lung Cancer', N'M0', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (444, N'Lung Cancer', N'M1', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (445, N'Lung Cancer', N'M1a', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (446, N'Lung Cancer', N'M1b', NULL, N'ajcc_7', N'm_stage')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (447, N'Lung Cancer', N'0', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (448, N'Lung Cancer', N'IA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (449, N'Lung Cancer', N'IB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (450, N'Lung Cancer', N'IIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (451, N'Lung Cancer', N'IIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (452, N'Lung Cancer', N'IIIA', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (453, N'Lung Cancer', N'IIIB', NULL, N'ajcc_7', N'overall')
INSERT [dbo].['staging files$'] ([StagingID], [CA], [staging], [detail], [version], [type]) VALUES (454, N'Lung Cancer', N'IV', NULL, N'ajcc_7', N'overall')
/****** Object:  Table [dbo].[sqlQueryFields]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sqlQueryFields](
	[SQL_Query] [nvarchar](255) NULL
) ON [PRIMARY]
GO
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'Histology')
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'Icd_Code')
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'T_Stage')
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'N_Stage')
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'M_Stage')
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'Overall_Stage')
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'Diagnosis_Year')
INSERT [dbo].[sqlQueryFields] ([SQL_Query]) VALUES (N'Version')
/****** Object:  Table [dbo].[roleUserMapping]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[roleUserMapping](
	[UserId] [uniqueidentifier] NOT NULL,
	[roleID] [int] NULL
) ON [PRIMARY]
GO
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'79232639-18cf-46c0-9849-13a39740799f', 3)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'bcc2c742-616f-4622-ab47-785eb59c120c', 5)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'94cc4e1f-4173-41f1-aafd-ba79a7bd94c4', 3)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'94cc4e1f-4173-41f1-aafd-ba79a7bd94c4', 4)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'41063b94-2e3c-4112-a0d3-1d85b9075a02', 2)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', 1)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', 2)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', 3)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', 4)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', 5)
INSERT [dbo].[roleUserMapping] ([UserId], [roleID]) VALUES (N'eec29dbe-8c77-48f0-81ad-8c44f2bff946', 1)
/****** Object:  Table [dbo].[rolesDef]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[rolesDef](
	[roleID] [int] IDENTITY(1,1) NOT NULL,
	[roleName] [varchar](50) NULL,
 CONSTRAINT [PK_rolesDef] PRIMARY KEY CLUSTERED 
(
	[roleID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[rolesDef] ON
INSERT [dbo].[rolesDef] ([roleID], [roleName]) VALUES (1, N'system admin')
INSERT [dbo].[rolesDef] ([roleID], [roleName]) VALUES (2, N'DCI Staff')
INSERT [dbo].[rolesDef] ([roleID], [roleName]) VALUES (3, N'DRO Staff')
INSERT [dbo].[rolesDef] ([roleID], [roleName]) VALUES (4, N'DMO Staff')
INSERT [dbo].[rolesDef] ([roleID], [roleName]) VALUES (5, N'Data Managers')
SET IDENTITY_INSERT [dbo].[rolesDef] OFF
/****** Object:  Table [dbo].[roleReportMapping]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[roleReportMapping](
	[sn] [int] IDENTITY(1,1) NOT NULL,
	[roleID] [int] NULL,
	[tableID] [int] NULL,
	[createdBy] [varchar](50) NULL,
	[createdOn] [datetime] NULL,
	[updatedBy] [varchar](50) NULL,
	[updatedOn] [datetime] NULL,
 CONSTRAINT [PK_roleReportMapping] PRIMARY KEY CLUSTERED 
(
	[sn] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[roleReportMapping] ON
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (1, 1, 10, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (2, 1, 9, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (3, 1, 8, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (4, 1, 15, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (5, 1, 16, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (6, 1, 19, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (7, 2, 17, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (8, 2, 9, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (9, 2, 2, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (10, 2, 5, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (11, 3, 5, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (12, 3, 6, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (13, 3, 10, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (14, 3, 9, N'admin', CAST(0x0000A13900000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (20, 1, 26, N'admin', CAST(0x0000A18F00000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (21, 3, 26, N'admin', CAST(0x0000A18F00000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (22, 4, 26, N'admin', CAST(0x0000A18F00000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (30, 1, 1, N'admin', CAST(0x0000A19700000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (31, 2, 1, N'admin', CAST(0x0000A19700000000 AS DateTime), NULL, NULL)
INSERT [dbo].[roleReportMapping] ([sn], [roleID], [tableID], [createdBy], [createdOn], [updatedBy], [updatedOn]) VALUES (32, 4, 1, N'admin', CAST(0x0000A19700000000 AS DateTime), NULL, NULL)
SET IDENTITY_INSERT [dbo].[roleReportMapping] OFF
/****** Object:  Table [dbo].[Mapping]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Mapping](
	[p_id] [int] IDENTITY(1,1) NOT NULL,
	[Label] [nvarchar](255) NULL,
	[ImgLeft] [int] NULL,
	[ImgRight] [int] NULL,
	[ImgTop] [int] NULL,
	[ImgBtm] [int] NULL,
	[TextLeft] [int] NULL,
	[TextRight] [int] NULL,
	[TextTop] [int] NULL,
	[TextBtm] [int] NULL,
	[LeftOrRight] [varchar](255) NULL,
PRIMARY KEY CLUSTERED 
(
	[p_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[Mapping] ON
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (1, N'Brain Cancer', 0, 21, 4, 25, 118, 171, 13, 19, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (2, N'Breast Cancer', 16, 46, 101, 132, 129, 188, 129, 136, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (3, N'Thyroid Cancer', 8, 23, 64, 86, 132, 194, 61, 68, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (4, N'Prostate Cancer', 0, 9, 241, 251, 119, 187, 245, 251, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (5, N'Others', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (6, N'Kidney Cancer', 30, 42, 188, 205, 151, 208, 193, 200, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (7, N'Bladder Cancer', 0, 9, 205, 217, 119, 183, 209, 217, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (8, N'Uterine Cancer', 9, 18, 231, 241, 127, 187, 233, 240, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (9, N'Ovarian Cancer', 0, 8, 220, 231, 119, 181, 223, 229, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (10, N'Cervical Cancer', 228, 245, 207, 241, 69, 130, 219, 226, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (11, N'Leukemia', 102, 146, 91, 112, 199, 236, 127, 134, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (12, N'Pancreatic Cancer', 232, 245, 162, 171, 63, 133, 162, 168, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (13, N'Liver Cancer', 221, 245, 139, 160, 84, 133, 147, 153, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (14, N'Head & Neck Cancer', 0, 20, 28, 60, 132, 210, 41, 48, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (15, N'Rectal Cancer', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (16, N'Colon Cancer', 5, 27, 179, 187, 133, 190, 179, 187, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (17, N'Lymphoma Cancer', 147, 177, 83, 103, 27, 94, 66, 73, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (18, N'Sarcoma Cancer', 184, 209, 78, 91, 62, 123, 55, 61, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (19, N'Skin Cancer', 41, 77, 84, 99, 170, 218, 76, 83, N'Right')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (20, N'Lung Cancer', 215, 239, 95, 130, 76, 124, 134, 141, N'Left')
INSERT [dbo].[Mapping] ([p_id], [Label], [ImgLeft], [ImgRight], [ImgTop], [ImgBtm], [TextLeft], [TextRight], [TextTop], [TextBtm], [LeftOrRight]) VALUES (21, N'Gastric Cancer', 15, 30, 157, 170, 136, 198, 161, 169, N'Right')
SET IDENTITY_INSERT [dbo].[Mapping] OFF
/****** Object:  Table [dbo].['id label file$']    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].['id label file$'](
	[id] [float] NOT NULL,
	[Label] [nvarchar](255) NULL,
PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (1, N'Brain Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (2, N'Breast Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (3, N'Thyroid Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (4, N'Prostate Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (5, N'Others')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (6, N'Kidney Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (7, N'Bladder Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (8, N'Uterine Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (9, N'Ovarian Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (10, N'Cervical Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (11, N'Leukemia')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (12, N'Pancreatic Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (13, N'Liver Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (14, N'Head & Neck Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (15, N'Rectal Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (16, N'Colon Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (17, N'Lymphoma Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (18, N'Sarcoma Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (19, N'Skin Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (20, N'Lung Cancer')
INSERT [dbo].['id label file$'] ([id], [Label]) VALUES (21, N'Gastric Cancer')
/****** Object:  Table [dbo].['icd mapping file$']    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].['icd mapping file$'](
	[ICDMappingID] [float] NOT NULL,
	[ICD_code] [nvarchar](255) NULL,
	[Detail_Description] [nvarchar](255) NULL,
	[Grouping] [nvarchar](255) NULL,
	[Label] [nvarchar](255) NULL,
PRIMARY KEY CLUSTERED 
(
	[ICDMappingID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (1, N'225', N'BN of brain and other parts of nervous system', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (2, N'350', N'Trigeminal neuralgia', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (3, N'G50', N'Trigeminal neuralgia', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (4, N'376.21', N'Thyrotoxic exophthalmos', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (5, N'372.4', N'Pterygium (eye)', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (6, N'H11.0', N'Pterygium', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (7, N'332', N'Parkinson disease', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (8, N'G20', N'Parkinson disease', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (9, N'H05.8', N'Other disorders of orbit', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (10, N'376.11', N'Orbital granuloma, Pseudotumor (inflammatory) of orbit', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (11, N'277.3', N'Occular amyloidosis', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (12, N'228.02', N'Haemangioma, intracranial structures', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (13, N'D18.02', N'Haemangioma, intracranial structures', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (14, N'228.03', N'Haemangioma of retina', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (15, N'376.2', N'Endocrine exophthalmos', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (16, N'H05.9', N'Disorders of orbit unspecified', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (17, N'227.3', N'BN pituitary craniopharyngeal duct', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (18, N'227.4', N'BN pineal gland', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (19, N'D35.2', N'BN of pituitary gland', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (20, N'D35.4', N'BN of pineal gland', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (21, N'D32', N'BN of meninges', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (22, N'D35.3', N'BN of craniopharyngeal duct', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (23, N'D33', N'BN of brain and other parts of CNS', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (24, N'224.1', N'BN eye', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (25, N'D31', N'BN eye', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (26, N'E85', N'Amyloidosis', N'Then Benign CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (27, N'218', N'Uterine leiomyoma', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (28, N'242', N'Thyrotoxicosis', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (29, N'E05', N'Thyrotoxicosis', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (30, N'D26', N'other BN of uterus', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (31, N'D23', N'Other BN of skin', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (32, N'D21', N'Other BN of connective and other soft tissue', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (33, N'D22', N'Melanocytic naevi', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (34, N'214', N'Lipoma', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (35, N'D25', N'Leiomyoma of uterus', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (36, N'701', N'Keloid', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (37, N'D18.03', N'Haemangioma, structures of the hepatobiliary system and pancreas', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (38, N'D18.05', N'Haemangioma, structures of the ear, nose, mouth and throat', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (39, N'D18.04', N'Haemangioma, structures of the digestive system', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (40, N'D18.00', N'Haemangioma and lymphangioma except intracranial structures', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (41, N'D18.01', N'Haemangioma and lymphangioma except intracranial structures', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (42, N'D18.08', N'Haemangioma and lymphangioma except intracranial structures', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (43, N'228', N'Haemangioma and lymphangioma except eye and retina', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (44, N'228.01', N'Haemangioma and lymphangioma except eye and retina', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (45, N'228.04', N'Haemangioma and lymphangioma except eye and retina', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (46, N'228.09', N'Haemangioma and lymphangioma except eye and retina', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (47, N'219', N'BN of uterus', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (48, N'D30', N'BN of urinary organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (49, N'227.9', N'BN of unspecified endocrine gland', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (50, N'226', N'BN of thyroid', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (51, N'D34', N'BN of thyroid', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (52, N'D20', N'BN of soft tissue of retroperitoneum and peritoneum', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (53, N'216', N'BN of skin', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (54, N'212', N'BN of respiratory and intrathoracic organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (55, N'227.1', N'BN of parathyroid gland', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (56, N'220', N'BN of ovary', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (57, N'D27', N'BN of ovary', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (58, N'221', N'BN of other female genital organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (59, N'227.8', N'BN of other endocrine gland', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (60, N'227', N'BN of other endocrine', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (61, N'229', N'BN of other and unspecified sites', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (62, N'D36', N'BN of other and unspecified sites', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (63, N'D15', N'BN of other and unspecified intrathoracic organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (64, N'D28', N'BN of other and unspecified female genital organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (65, N'D35', N'BN of other and unspecified endocrine glands', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (66, N'D13', N'BN of other and ill defined part of digestive system', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (67, N'D10', N'BN of mouth and pharynx', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (68, N'D14', N'BN of middle ear and repiratory system', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (69, N'D19', N'BN of mesothelial tissue', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (70, N'222', N'BN of male genital organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (71, N'D29', N'BN of male genital organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (72, N'D11', N'BN of major salivary glands', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (73, N'210', N'BN of lip, oral cavity and pharynx', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (74, N'223', N'BN of kidney and other urinary organs', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (75, N'211', N'BN of digestive system', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (76, N'215', N'BN of connective and soft tissue', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (77, N'D12', N'BN of colon, rectum, anus and anal canal', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (78, N'227.5', N'BN of carotid body', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (79, N'217', N'BN of breast', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (80, N'D24', N'BN of breast', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (81, N'213', N'BN of bone and articular cartilage', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (82, N'D16', N'BN of bone and articular cartilage', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (83, N'227.6', N'BN of aortic body and other paraganglia', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (84, N'D17', N'BN lipomatous neoplasm', N'Then Benign ex CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (85, N'175', N'Male Breast', N'Then Breast', N'Breast Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (86, N'174', N'Female Breast', N'Then Breast', N'Breast Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (87, N'C50', N'Breast', N'Then Breast', N'Breast Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (88, N'192', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (89, N'192', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (90, N'192.2', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (91, N'192.8', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (92, N'192.9', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (93, N'194.3', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (94, N'194.4', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (95, N'C72', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (96, N'C75.1', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (97, N'C75.2', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (98, N'C75.3', N'Others', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (99, N'192.1', N'Meninges', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (100, N'192.3', N'Meninges', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (101, N'C70', N'Meninges', N'Then CNS', N'Brain Cancer')
GO
print 'Processed 100 total records'
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (102, N'191', N'Brain', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (103, N'C71', N'Brain', N'Then CNS', N'Brain Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (104, N'194.1', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (105, N'194.5', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (106, N'194.6', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (107, N'194.8', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (108, N'194.9', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (109, N'C75.0', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (110, N'C75.4', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (111, N'C75.5', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (112, N'C75.8', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (113, N'C75.9', N'Others', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (114, N'194', N'Adrenal gland', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (115, N'C74', N'Adrenal gland', N'Then Endocrine glands', N'Thyroid Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (116, N'185', N'Prostate', N'Then Genitourinary', N'Prostate Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (117, N'C61', N'Prostate', N'Then Genitourinary', N'Prostate Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (118, N'186', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (119, N'187', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (120, N'189.1', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (121, N'189.3', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (122, N'189.4', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (123, N'189.8', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (124, N'189.9', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (125, N'C60', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (126, N'C62', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (127, N'C63', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (128, N'C65', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (129, N'C66', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (130, N'C68', N'Others', N'Then Genitourinary', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (131, N'189', N'Kidney', N'Then Genitourinary', N'Kidney Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (132, N'C64', N'Kidney', N'Then Genitourinary', N'Kidney Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (133, N'188', N'Bladder', N'Then Genitourinary', N'Bladder Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (134, N'C67', N'Bladder', N'Then Genitourinary', N'Bladder Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (135, N'179', N'Uterus', N'Then Gynaecological', N'Uterine Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (136, N'182', N'Uterus', N'Then Gynaecological', N'Uterine Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (137, N'C54', N'Uterus', N'Then Gynaecological', N'Uterine Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (138, N'C55', N'Uterus', N'Then Gynaecological', N'Uterine Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (139, N'183', N'Ovary', N'Then Gynaecological', N'Ovarian Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (140, N'C56', N'Ovary', N'Then Gynaecological', N'Ovarian Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (141, N'181', N'Others', N'Then Gynaecological', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (142, N'184', N'Others', N'Then Gynaecological', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (143, N'C51', N'Others', N'Then Gynaecological', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (144, N'C52', N'Others', N'Then Gynaecological', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (145, N'C57', N'Others', N'Then Gynaecological', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (146, N'C58', N'Others', N'Then Gynaecological', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (147, N'180', N'Cervix', N'Then Gynaecological', N'Cervical Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (148, N'C53', N'Cervix', N'Then Gynaecological', N'Cervical Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (149, N'207', N'Others', N'Then Haematology', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (150, N'208', N'Others', N'Then Haematology', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (151, N'C94.0', N'Others', N'Then Haematology', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (152, N'C95.0', N'Others', N'Then Haematology', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (153, N'D45', N'Others', N'Then Haematology', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (154, N'205', N'Myeloid leukaemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (155, N'206', N'Myeloid leukaemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (156, N'C92.0', N'Myeloid leukaemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (157, N'C93.0', N'Myeloid leukaemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (158, N'203', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (159, N'203.1', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (160, N'203.8', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (161, N'238.6', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (162, N'C88', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (163, N'C90.0', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (164, N'C90.00', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (165, N'C90.01', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (166, N'C90.1', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (167, N'C90.10', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (168, N'C90.11', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (169, N'C90.2', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (170, N'C90.20', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (171, N'C90.21', N'Multiple myeloma', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (172, N'238.7', N'MDS', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (173, N'D46', N'MDS', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (174, N'204', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (175, N'C91.0', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (176, N'C91.1', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (177, N'C91.2', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (178, N'C91.3', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (179, N'C91.5', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (180, N'C91.7', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (181, N'C91.9', N'Lymphatic leukemia', N'Then Haematology', N'Leukemia')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (182, N'157', N'Pancreas', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (183, N'C25', N'Pancreas', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (184, N'156.2', N'Others', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (185, N'156.8', N'Others', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (186, N'156.9', N'Others', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (187, N'C24.1', N'Others', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (188, N'C24.8', N'Others', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (189, N'C24.9', N'Others', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (190, N'155', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (191, N'155.2', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (192, N'C22.0', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (193, N'C22.2', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (194, N'C22.3', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (195, N'C22.4', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (196, N'C22.7', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (197, N'C22.9', N'Liver', N'Then HBS', N'Liver Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (198, N'156', N'Gallbladder', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (199, N'C23', N'Gallbladder', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (200, N'155.1', N'Bile ducts', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (201, N'156.1', N'Bile ducts', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (202, N'C22.1', N'Bile ducts', N'Then HBS', N'Pancreatic Cancer')
GO
print 'Processed 200 total records'
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (203, N'C24.0', N'Bile ducts', N'Then HBS', N'Pancreatic Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (204, N'149.1', N'Waldeyer ring', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (205, N'C14.2', N'Waldeyer ring', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (206, N'146', N'Tonsil', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (207, N'146.1', N'Tonsil', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (208, N'146.2', N'Tonsil', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (209, N'C09', N'Tonsil', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (210, N'141', N'Tongue', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (211, N'C01', N'Tongue', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (212, N'C02', N'Tongue', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (213, N'193', N'Thyroid gland', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (214, N'C73', N'Thyroid gland', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (215, N'148.1', N'Pyriform sinus', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (216, N'C12', N'Pyriform sinus', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (217, N'149', N'Pharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (218, N'C14.0', N'Pharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (219, N'142', N'Parotid gland', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (220, N'C07', N'Parotid gland', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (221, N'145.2', N'Palate', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (222, N'145.3', N'Palate', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (223, N'145.4', N'Palate', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (224, N'145.5', N'Palate', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (225, N'C05', N'Palate', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (226, N'149.8', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (227, N'149.9', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (228, N'170', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (229, N'170.1', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (230, N'171', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (231, N'190', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (232, N'195', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (233, N'C14.8', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (234, N'C69', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (235, N'C41.0', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (236, N'C41.01', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (237, N'C41.02', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (238, N'C41.1', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (239, N'C49.0', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (240, N'C76.0', N'Others', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (241, N'145', N'Other and unspecified parts of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (242, N'145.1', N'Other and unspecified parts of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (243, N'145.6', N'Other and unspecified parts of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (244, N'145.8', N'Other and unspecified parts of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (245, N'145.9', N'Other and unspecified parts of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (246, N'C06', N'Other and unspecified parts of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (247, N'142.1', N'Other and unspecified major salivary glands', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (248, N'142.2', N'Other and unspecified major salivary glands', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (249, N'142.8', N'Other and unspecified major salivary glands', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (250, N'142.9', N'Other and unspecified major salivary glands', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (251, N'C08', N'Other and unspecified major salivary glands', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (252, N'146.3', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (253, N'146.4', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (254, N'146.5', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (255, N'146.6', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (256, N'146.7', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (257, N'146.8', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (258, N'146.9', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (259, N'C10', N'Oropharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (260, N'147', N'Nasopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (261, N'C11', N'Nasopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (262, N'160', N'Nasal Cavity/Mdl. Ear/Aux Sinus', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (263, N'C30', N'Nasal Cavity/Mdl. Ear/Aux Sinus', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (264, N'C31', N'Nasal Cavity/Mdl. Ear/Aux Sinus', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (265, N'140', N'Lip and oral cavity', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (266, N'C00', N'Lip and oral cavity', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (267, N'161', N'Larynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (268, N'C32', N'Larynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (269, N'148', N'Hypopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (270, N'148.2', N'Hypopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (271, N'148.3', N'Hypopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (272, N'148.8', N'Hypopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (273, N'148.9', N'Hypopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (274, N'C13', N'Hypopharynx', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (275, N'143', N'Gum', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (276, N'C03', N'Gum', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (277, N'144', N'Floor of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (278, N'C04', N'Floor of mouth', N'Then Head & Neck', N'Head & Neck Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (279, N'154', N'Rectosigmoid Rectum', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (280, N'154.1', N'Rectosigmoid Rectum', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (281, N'154.8', N'Rectosigmoid Rectum', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (282, N'C19', N'Rectosigmoid Rectum', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (283, N'C20', N'Rectosigmoid Rectum', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (284, N'153', N'Colon', N'Then Lower GI', N'Colon Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (285, N'C18', N'Colon', N'Then Lower GI', N'Colon Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (286, N'154.2', N'Anus Anal canal', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (287, N'154.3', N'Anus Anal canal', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (288, N'C21', N'Anus Anal canal', N'Then Lower GI', N'Rectal Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (289, N'200', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (290, N'202', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (291, N'C82', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (292, N'C96', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (293, N'C96.1', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (294, N'C91.4', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (295, N'C83', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (296, N'C84', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (297, N'C85', N'Non-hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (298, N'201', N'Hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (299, N'C81', N'Hodgkin Lymphoma', N'Then Lymphoma', N'Lymphoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (300, N'199.1', N'Unknown primary', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (301, N'C80', N'Unknown primary', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (302, N'158', N'Retroperitoneum and peritoneum', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (303, N'C45.1', N'Retroperitoneum and peritoneum', N'Then Misc', N'Others')
GO
print 'Processed 300 total records'
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (304, N'C48', N'Retroperitoneum and peritoneum', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (305, N'199.1', N'Others', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (306, N'C80', N'Others', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (307, N'195.2', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (308, N'195.3', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (309, N'195.4', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (310, N'195.5', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (311, N'195.8', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (312, N'C76.1', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (313, N'C76.2', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (314, N'C76.3', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (315, N'C76.4', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (316, N'C76.5', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (317, N'C76.7', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (318, N'C76.8', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (319, N'C45.7', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (320, N'C45.9', N'Other and ill-defined sites', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (321, N'235', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (322, N'236', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (323, N'237', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (324, N'238', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (325, N'239', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (326, N'D37', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (327, N'D38', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (328, N'D39', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (329, N'D40', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (330, N'D41', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (331, N'D42', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (332, N'D43', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (333, N'D44', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (334, N'D47', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (335, N'D48', N'Neoplasm of uncertain or unknown behavior', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (336, N'199', N'Disseminated', N'Then Misc', N'Others')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (337, N'171.2', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (338, N'171.3', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (339, N'171.5', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (340, N'171.6', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (341, N'171.7', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (342, N'171.8', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (343, N'171.9', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (344, N'C49.1', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (345, N'C49.2', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (346, N'C49.4', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (347, N'C49.5', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (348, N'C49.6', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (349, N'C49.8', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (350, N'C49.9', N'Soft tissue', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (351, N'176.1', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (352, N'176.2', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (353, N'176.3', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (354, N'176.4', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (355, N'176.5', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (356, N'176.8', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (357, N'176.9', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (358, N'C46.1', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (359, N'C46.2', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (360, N'C46.3', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (361, N'C46.4', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (362, N'C46.5', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (363, N'C46.7', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (364, N'C46.8', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (365, N'C46.9', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (366, N'C47', N'Others', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (367, N'170.2', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (368, N'170.3', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (369, N'170.4', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (370, N'170.5', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (371, N'170.6', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (372, N'170.7', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (373, N'170.8', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (374, N'170.9', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (375, N'C40', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (376, N'C41.2', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (377, N'C41.3', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (378, N'C41.4', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (379, N'C41.8', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (380, N'C41.9', N'Bone', N'Then Sarcoma', N'Sarcoma Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (381, N'173', N'Squamous cell carcinoma of skin', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (382, N'C44', N'Squamous cell carcinoma of skin', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (383, N'176', N'Others', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (384, N'C46.0', N'Others', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (385, N'172', N'Malignant melanoma of skin', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (386, N'C43', N'Malignant melanoma of skin', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (387, N'173', N'Basal cell carcinoma of skin', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (388, N'C44', N'Basal cell carcinoma of skin', N'Then Skin', N'Skin Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (389, N'162', N'Trachea', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (390, N'C33', N'Trachea', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (391, N'164', N'Thymus', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (392, N'C37', N'Thymus', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (393, N'163', N'Pleura', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (394, N'C38.4', N'Pleura', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (395, N'C45.0', N'Pleura', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (396, N'164.1', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (397, N'164.2', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (398, N'164.3', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (399, N'164.8', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (400, N'164.9', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (401, N'165', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (402, N'171.4', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (403, N'195.1', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (404, N'C38.0', N'Others', N'Then Thorax', N'Lung Cancer')
GO
print 'Processed 400 total records'
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (405, N'C38.1', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (406, N'C38.2', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (407, N'C38.3', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (408, N'C38.8', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (409, N'C39', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (410, N'C45.2', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (411, N'C49.3', N'Others', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (412, N'162.2', N'Lung', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (413, N'162.3', N'Lung', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (414, N'162.4', N'Lung', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (415, N'162.5', N'Lung', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (416, N'162.8', N'Lung', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (417, N'162.9', N'Lung', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (418, N'C34', N'Lung', N'Then Thorax', N'Lung Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (419, N'151', N'Stomach', N'Then Upper GI', N'Gastric Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (420, N'C16', N'Stomach', N'Then Upper GI', N'Gastric Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (421, N'152', N'Small intestine', N'Then Upper GI', N'Gastric Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (422, N'C17', N'Small intestine', N'Then Upper GI', N'Gastric Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (423, N'159', N'Others', N'Then Upper GI', N'Gastric Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (424, N'C26', N'Others', N'Then Upper GI', N'Gastric Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (425, N'150', N'Esophagus', N'Then Upper GI', N'Gastric Cancer')
INSERT [dbo].['icd mapping file$'] ([ICDMappingID], [ICD_code], [Detail_Description], [Grouping], [Label]) VALUES (426, N'C15', N'Esophagus', N'Then Upper GI', N'Gastric Cancer')
/****** Object:  Table [dbo].[auditLog]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[auditLog](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[auditlog] [text] NULL,
	[userID] [varchar](50) NULL,
	[createdOn] [datetime] NULL,
	[rptID] [varchar](50) NULL,
 CONSTRAINT [PK_auditLog] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[auditLog] ON
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (1, N'User accessing report (Name:First test;id:1) on 2013-04-05 01:43:21.', N'admin', CAST(0x0000A197001C62CC AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (2, N'User accessing report (Name:First test;id:2) on 2013-04-05 01:43:25.', N'admin', CAST(0x0000A197001C677C AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (3, N'User accessing report (Name:Second test;id:18) on 2013-04-05 01:43:27.', N'admin', CAST(0x0000A197001C69D4 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (4, N'User accessing report (Name:Second test;id:24) on 2013-04-05 01:43:31.', N'admin', CAST(0x0000A197001C6E84 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (5, N'User accessing report (Name:DRO Monthly Reports;id:25) on 2013-04-05 01:43:34.', N'admin', CAST(0x0000A197001C7208 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (6, N'User accessing report (Name:DCI monthly report;id:26) on 2013-04-05 01:43:36.', N'admin', CAST(0x0000A197001C7460 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (7, N'User accessing report (Name:First test;id:1) on 2013-04-05 08:49:47.', N'viewer', CAST(0x0000A19700918264 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (8, N'User accessing report (Name:First test;id:1) on 2013-04-05 08:51:01.', N'viewer', CAST(0x0000A1970091D91C AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (9, N'User accessing report (Name:First test;id:1) on 2013-04-05 08:59:31.', N'viewer', CAST(0x0000A19700942EC4 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (10, N'User accessing report (Name:First test;id:1) on 2013-04-05 08:59:50.', N'viewer', CAST(0x0000A19700944508 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (11, N'User accessing report (Name:First test;id:1) on 2013-04-05 09:00:25.', N'viewer', CAST(0x0000A19700946E0C AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (12, N'User accessing report (Name:DRO Monthly Reports;id:25) on 2013-10-09 11:18:37.', N'admin', CAST(0x0000A25200BA633C AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (13, N'User accessing report (Name:First test;id:1) on 2013-10-09 11:18:40.', N'admin', CAST(0x0000A25200BA66C0 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (14, N'User accessing report (Name:First test;id:2) on 2013-10-09 11:18:43.', N'admin', CAST(0x0000A25200BA6A44 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (15, N'User accessing report (Name:DCI monthly report;id:26) on 2013-10-09 11:18:46.', N'admin', CAST(0x0000A25200BA6DC8 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (16, N'User accessing report (Name:DRO TEST1;id:28) on 2013-10-09 11:20:52.', N'admin', CAST(0x0000A25200BB0170 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (17, N'User accessing report (Name:Second test;id:18) on 2013-10-09 18:01:04.', N'admin', CAST(0x0000A2520128EC80 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (18, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:18:45.', N'ncicj', CAST(0x0000A253010CD25C AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (19, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:19:06.', N'ncicj', CAST(0x0000A253010CEAF8 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (20, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:20:44.', N'ncicj', CAST(0x0000A253010D5DD0 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (21, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:20:48.', N'ncicj', CAST(0x0000A253010D6280 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (22, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:21:16.', N'ncicj', CAST(0x0000A253010D8350 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (23, N'User accessing report (UserID:ncicj;ReportID:30) on 2013-10-10 16:21:22.', N'ncicj', CAST(0x0000A253010D8A58 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (24, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:27:30.', N'ncicj', CAST(0x0000A253010F3998 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (25, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:27:33.', N'ncicj', CAST(0x0000A253010F3D1C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (26, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-10 16:27:36.', N'ncicj', CAST(0x0000A253010F40A0 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (27, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-10 16:28:15.', N'ncicj', CAST(0x0000A253010F6E54 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (28, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:02.', N'ncicj', CAST(0x0000A25301133778 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (29, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:25.', N'ncicj', CAST(0x0000A2530113526C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (30, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:28.', N'ncicj', CAST(0x0000A253011355F0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (31, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:30.', N'ncicj', CAST(0x0000A25301135848 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (32, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:45.', N'ncicj', CAST(0x0000A253011369DC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (33, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:45.', N'ncicj', CAST(0x0000A253011369DC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (34, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:47.', N'ncicj', CAST(0x0000A25301136C34 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (35, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:50.', N'ncicj', CAST(0x0000A25301136FB8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (36, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:57.', N'ncicj', CAST(0x0000A253011377EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (37, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:42:59.', N'ncicj', CAST(0x0000A25301137A44 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (38, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:02.', N'ncicj', CAST(0x0000A25301137DC8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (39, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:03.', N'ncicj', CAST(0x0000A25301137EF4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (40, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:04.', N'ncicj', CAST(0x0000A25301138020 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (41, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:06.', N'ncicj', CAST(0x0000A25301138278 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (42, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:08.', N'ncicj', CAST(0x0000A253011384D0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (43, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:18.', N'ncicj', CAST(0x0000A25301139088 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (44, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:18.', N'ncicj', CAST(0x0000A25301139088 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (45, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:20.', N'ncicj', CAST(0x0000A253011392E0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (46, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:43:22.', N'ncicj', CAST(0x0000A25301139538 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (47, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:45:02.', N'ncicj', CAST(0x0000A25301140A68 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (48, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-10 16:45:06.', N'ncicj', CAST(0x0000A25301140F18 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (49, N'User accessing report (UserID:ncicj;ReportID:37) on 2013-10-10 16:45:09.', N'ncicj', CAST(0x0000A2530114129C AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (50, N'User accessing report (UserID:ncicj;ReportID:37) on 2013-10-10 16:45:10.', N'ncicj', CAST(0x0000A253011413C8 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (51, N'User accessing report (UserID:ncicj;ReportID:37) on 2013-10-10 16:45:26.', N'ncicj', CAST(0x0000A25301142688 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (52, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 16:46:01.', N'admin', CAST(0x0000A25301144F8C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (53, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 16:46:07.', N'admin', CAST(0x0000A25301145694 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (54, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 16:46:11.', N'admin', CAST(0x0000A25301145B44 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (55, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 16:46:12.', N'admin', CAST(0x0000A25301145C70 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (56, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 16:46:14.', N'admin', CAST(0x0000A25301145EC8 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (57, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:11:00.', N'admin', CAST(0x0000A253011B2C30 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (58, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:11:01.', N'admin', CAST(0x0000A253011B2D5C AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (59, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:11:02.', N'admin', CAST(0x0000A253011B2E88 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (60, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:11:21.', N'admin', CAST(0x0000A253011B44CC AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (61, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:11:37.', N'admin', CAST(0x0000A253011B578C AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (62, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:11:37.', N'admin', CAST(0x0000A253011B578C AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (63, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:11:41.', N'admin', CAST(0x0000A253011B5C3C AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (64, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:15:34.', N'admin', CAST(0x0000A253011C6D48 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (65, N'User accessing report (UserID:admin;ReportID:37) on 2013-10-10 17:15:34.', N'admin', CAST(0x0000A253011C6D48 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (66, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:15:37.', N'admin', CAST(0x0000A253011C70CC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (67, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:15:38.', N'admin', CAST(0x0000A253011C71F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (68, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:15:53.', N'admin', CAST(0x0000A253011C838C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (69, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:15:54.', N'admin', CAST(0x0000A253011C84B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (70, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:15:55.', N'admin', CAST(0x0000A253011C85E4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (71, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:00.', N'admin', CAST(0x0000A253011C8BC0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (72, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:01.', N'admin', CAST(0x0000A253011C8CEC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (73, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:20.', N'admin', CAST(0x0000A253011CA330 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (74, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:24.', N'admin', CAST(0x0000A253011CA7E0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (75, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:28.', N'admin', CAST(0x0000A253011CAC90 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (76, N'User accessing report (UserID:admin;ReportID:1) on 2013-10-10 17:16:39.', N'admin', CAST(0x0000A253011CB974 AS DateTime), N'1')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (77, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:39.', N'admin', CAST(0x0000A253011CB974 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (78, N'User accessing report (UserID:admin;ReportID:25) on 2013-10-10 17:16:42.', N'admin', CAST(0x0000A253011CBCF8 AS DateTime), N'25')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (79, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:42.', N'admin', CAST(0x0000A253011CBCF8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (80, N'User accessing report (UserID:admin;ReportID:26) on 2013-10-10 17:16:44.', N'admin', CAST(0x0000A253011CBF50 AS DateTime), N'26')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (81, N'User accessing report (UserID:admin;ReportID:) on 2013-10-10 17:16:44.', N'admin', CAST(0x0000A253011CBF50 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (82, N'User accessing report (UserID:admin;ReportID:28) on 2013-10-10 17:16:46.', N'admin', CAST(0x0000A253011CC1A8 AS DateTime), N'28')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (83, N'User accessing report (UserID:admin;ReportID:) on 2013-10-11 09:08:14.', N'admin', CAST(0x0000A254009693A8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (84, N'User accessing report (UserID:admin;ReportID:) on 2013-10-11 09:08:15.', N'admin', CAST(0x0000A254009694D4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (85, N'User login system (UID:ncicj) on 2013-10-11 09:08:48.', N'ncicj', CAST(0x0000A2540096BB80 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (86, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:08:48.', N'ncicj', CAST(0x0000A2540096BB80 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (87, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:08:52.', N'ncicj', CAST(0x0000A2540096C030 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (88, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:08:54.', N'ncicj', CAST(0x0000A2540096C288 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (89, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:08:55.', N'ncicj', CAST(0x0000A2540096C3B4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (90, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:00.', N'ncicj', CAST(0x0000A2540096C990 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (91, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:03.', N'ncicj', CAST(0x0000A2540096CD14 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (92, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:03.', N'ncicj', CAST(0x0000A2540096CD14 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (93, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:04.', N'ncicj', CAST(0x0000A2540096CE40 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (94, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:11.', N'ncicj', CAST(0x0000A2540096D674 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (95, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:14.', N'ncicj', CAST(0x0000A2540096D9F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (96, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:14.', N'ncicj', CAST(0x0000A2540096D9F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (97, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:17.', N'ncicj', CAST(0x0000A2540096DD7C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (98, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:30.', N'ncicj', CAST(0x0000A2540096ECB8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (99, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:31.', N'ncicj', CAST(0x0000A2540096EDE4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (100, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:32.', N'ncicj', CAST(0x0000A2540096EF10 AS DateTime), N'')
GO
print 'Processed 100 total records'
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (101, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:32.', N'ncicj', CAST(0x0000A2540096EF10 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (102, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:34.', N'ncicj', CAST(0x0000A2540096F168 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (103, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:35.', N'ncicj', CAST(0x0000A2540096F294 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (104, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:36.', N'ncicj', CAST(0x0000A2540096F3C0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (105, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:37.', N'ncicj', CAST(0x0000A2540096F4EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (106, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:37.', N'ncicj', CAST(0x0000A2540096F4EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (107, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:44.', N'ncicj', CAST(0x0000A2540096FD20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (108, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:45.', N'ncicj', CAST(0x0000A2540096FE4C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (109, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:46.', N'ncicj', CAST(0x0000A2540096FF78 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (110, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:09:47.', N'ncicj', CAST(0x0000A254009700A4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (111, N'User accessing report (UserID:;ReportID:) on 2013-10-11 09:13:21.', N'', CAST(0x0000A2540097FB6C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (112, N'User login system (UID:ncicj) on 2013-10-11 09:13:34.', N'ncicj', CAST(0x0000A25400980AA8 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (113, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:34.', N'ncicj', CAST(0x0000A25400980AA8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (114, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:43.', N'ncicj', CAST(0x0000A25400981534 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (115, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:45.', N'ncicj', CAST(0x0000A2540098178C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (116, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:46.', N'ncicj', CAST(0x0000A254009818B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (117, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:52.', N'ncicj', CAST(0x0000A25400981FC0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (118, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:53.', N'ncicj', CAST(0x0000A254009820EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (119, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:56.', N'ncicj', CAST(0x0000A25400982470 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (120, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:13:56.', N'ncicj', CAST(0x0000A25400982470 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (121, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:14:08.', N'ncicj', CAST(0x0000A25400983280 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (122, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:14:09.', N'ncicj', CAST(0x0000A254009833AC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (123, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:14:12.', N'ncicj', CAST(0x0000A25400983730 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (124, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:14:12.', N'ncicj', CAST(0x0000A25400983730 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (125, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:14:14.', N'ncicj', CAST(0x0000A25400983988 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (126, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:14:58.', N'ncicj', CAST(0x0000A25400986D18 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (127, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:15:02.', N'ncicj', CAST(0x0000A254009871C8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (128, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:15:03.', N'ncicj', CAST(0x0000A254009872F4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (129, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:15:22.', N'ncicj', CAST(0x0000A25400988938 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (130, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:15:30.', N'ncicj', CAST(0x0000A25400989298 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (131, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:15:31.', N'ncicj', CAST(0x0000A254009893C4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (132, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:15:41.', N'ncicj', CAST(0x0000A25400989F7C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (133, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:31:40.', N'ncicj', CAST(0x0000A254009D0350 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (134, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:31:45.', N'ncicj', CAST(0x0000A254009D092C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (135, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:31:47.', N'ncicj', CAST(0x0000A254009D0B84 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (136, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:31:48.', N'ncicj', CAST(0x0000A254009D0CB0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (137, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:17.', N'ncicj', CAST(0x0000A254009D2EAC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (138, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:20.', N'ncicj', CAST(0x0000A254009D3230 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (139, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:21.', N'ncicj', CAST(0x0000A254009D335C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (140, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:22.', N'ncicj', CAST(0x0000A254009D3488 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (141, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:24.', N'ncicj', CAST(0x0000A254009D36E0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (142, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:32.', N'ncicj', CAST(0x0000A254009D4040 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (143, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:44.', N'ncicj', CAST(0x0000A254009D4E50 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (144, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:32:51.', N'ncicj', CAST(0x0000A254009D5684 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (145, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:33:05.', N'ncicj', CAST(0x0000A254009D66EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (146, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:33:06.', N'ncicj', CAST(0x0000A254009D6818 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (147, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:33:08.', N'ncicj', CAST(0x0000A254009D6A70 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (148, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:33:37.', N'ncicj', CAST(0x0000A254009D8C6C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (149, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:33:37.', N'ncicj', CAST(0x0000A254009D8C6C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (150, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:33:39.', N'ncicj', CAST(0x0000A254009D8EC4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (151, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:33:42.', N'ncicj', CAST(0x0000A254009D9248 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (152, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:39:55.', N'ncicj', CAST(0x0000A254009F4764 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (153, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:40:01.', N'ncicj', CAST(0x0000A254009F4E6C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (154, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:40:04.', N'ncicj', CAST(0x0000A254009F51F0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (155, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:40:44.', N'ncicj', CAST(0x0000A254009F80D0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (156, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:40:46.', N'ncicj', CAST(0x0000A254009F8328 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (157, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:40:47.', N'ncicj', CAST(0x0000A254009F8454 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (158, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:41:58.', N'ncicj', CAST(0x0000A254009FD788 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (159, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:42:00.', N'ncicj', CAST(0x0000A254009FD9E0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (160, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:42:02.', N'ncicj', CAST(0x0000A254009FDC38 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (161, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:42:07.', N'ncicj', CAST(0x0000A254009FE214 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (162, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:42:10.', N'ncicj', CAST(0x0000A254009FE598 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (163, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:42:11.', N'ncicj', CAST(0x0000A254009FE6C4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (164, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:43:48.', N'ncicj', CAST(0x0000A25400A05870 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (165, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 09:43:51.', N'ncicj', CAST(0x0000A25400A05BF4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (166, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:09:30.', N'ncicj', CAST(0x0000A25400A76778 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (167, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:09:30.', N'ncicj', CAST(0x0000A25400A76778 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (168, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:09:34.', N'ncicj', CAST(0x0000A25400A76C28 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (169, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:09:36.', N'ncicj', CAST(0x0000A25400A76E80 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (170, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:09:38.', N'ncicj', CAST(0x0000A25400A770D8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (171, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:11:25.', N'ncicj', CAST(0x0000A25400A7EE3C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (172, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:11:27.', N'ncicj', CAST(0x0000A25400A7F094 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (173, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:11:29.', N'ncicj', CAST(0x0000A25400A7F2EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (174, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:11:36.', N'ncicj', CAST(0x0000A25400A7FB20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (175, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:12:49.', N'ncicj', CAST(0x0000A25400A850AC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (176, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:14:33.', N'ncicj', CAST(0x0000A25400A8CA8C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (177, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:14:41.', N'ncicj', CAST(0x0000A25400A8D3EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (178, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:14:42.', N'ncicj', CAST(0x0000A25400A8D518 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (179, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:15:07.', N'ncicj', CAST(0x0000A25400A8F264 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (180, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:15:58.', N'ncicj', CAST(0x0000A25400A92E28 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (181, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:22:35.', N'ncicj', CAST(0x0000A25400AAFF64 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (182, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:22:36.', N'ncicj', CAST(0x0000A25400AB0090 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (183, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:22:36.', N'ncicj', CAST(0x0000A25400AB0090 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (184, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:22:37.', N'ncicj', CAST(0x0000A25400AB01BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (185, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:22:37.', N'ncicj', CAST(0x0000A25400AB01BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (186, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:22:37.', N'ncicj', CAST(0x0000A25400AB01BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (187, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:22:37.', N'ncicj', CAST(0x0000A25400AB01BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (188, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:23:13.', N'ncicj', CAST(0x0000A25400AB2BEC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (189, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:23:19.', N'ncicj', CAST(0x0000A25400AB32F4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (190, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:23:23.', N'ncicj', CAST(0x0000A25400AB37A4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (191, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:23:38.', N'ncicj', CAST(0x0000A25400AB4938 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (192, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:23:46.', N'ncicj', CAST(0x0000A25400AB5298 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (193, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:24:03.', N'ncicj', CAST(0x0000A25400AB6684 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (194, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:24:05.', N'ncicj', CAST(0x0000A25400AB68DC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (195, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:24:07.', N'ncicj', CAST(0x0000A25400AB6B34 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (196, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:24:07.', N'ncicj', CAST(0x0000A25400AB6B34 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (197, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:24:09.', N'ncicj', CAST(0x0000A25400AB6D8C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (198, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:24:10.', N'ncicj', CAST(0x0000A25400AB6EB8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (199, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:24:27.', N'ncicj', CAST(0x0000A25400AB82A4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (200, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:25:06.', N'ncicj', CAST(0x0000A25400ABB058 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (201, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:25:09.', N'ncicj', CAST(0x0000A25400ABB3DC AS DateTime), N'')
GO
print 'Processed 200 total records'
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (202, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:25:28.', N'ncicj', CAST(0x0000A25400ABCA20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (203, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:27:12.', N'ncicj', CAST(0x0000A25400AC4400 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (204, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:27:14.', N'ncicj', CAST(0x0000A25400AC4658 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (205, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:05.', N'ncicj', CAST(0x0000A25400ACC86C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (206, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:12.', N'ncicj', CAST(0x0000A25400ACD0A0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (207, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:15.', N'ncicj', CAST(0x0000A25400ACD424 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (208, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:28.', N'ncicj', CAST(0x0000A25400ACE360 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (209, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:38.', N'ncicj', CAST(0x0000A25400ACEF18 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (210, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:43.', N'ncicj', CAST(0x0000A25400ACF4F4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (211, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:44.', N'ncicj', CAST(0x0000A25400ACF620 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (212, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:29:48.', N'ncicj', CAST(0x0000A25400ACFAD0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (213, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:30:41.', N'ncicj', CAST(0x0000A25400AD38EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (214, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:30:43.', N'ncicj', CAST(0x0000A25400AD3B44 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (215, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:30:53.', N'ncicj', CAST(0x0000A25400AD46FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (216, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:30:58.', N'ncicj', CAST(0x0000A25400AD4CD8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (217, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:01.', N'ncicj', CAST(0x0000A25400AD505C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (218, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:05.', N'ncicj', CAST(0x0000A25400AD550C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (219, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:09.', N'ncicj', CAST(0x0000A25400AD59BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (220, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:39.', N'ncicj', CAST(0x0000A25400AD7CE4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (221, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:41.', N'ncicj', CAST(0x0000A25400AD7F3C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (222, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:44.', N'ncicj', CAST(0x0000A25400AD82C0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (223, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:52.', N'ncicj', CAST(0x0000A25400AD8C20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (224, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:31:57.', N'ncicj', CAST(0x0000A25400AD91FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (225, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:32:08.', N'ncicj', CAST(0x0000A25400AD9EE0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (226, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:32:09.', N'ncicj', CAST(0x0000A25400ADA00C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (227, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:32:11.', N'ncicj', CAST(0x0000A25400ADA264 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (228, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:32:13.', N'ncicj', CAST(0x0000A25400ADA4BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (229, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:33:31.', N'ncicj', CAST(0x0000A25400AE0024 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (230, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:33:32.', N'ncicj', CAST(0x0000A25400AE0150 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (231, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:33:34.', N'ncicj', CAST(0x0000A25400AE03A8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (232, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:35:06.', N'ncicj', CAST(0x0000A25400AE6F78 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (233, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:35:12.', N'ncicj', CAST(0x0000A25400AE7680 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (234, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:35:53.', N'ncicj', CAST(0x0000A25400AEA68C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (235, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:36:00.', N'ncicj', CAST(0x0000A25400AEAEC0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (236, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:36:07.', N'ncicj', CAST(0x0000A25400AEB6F4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (237, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:37:06.', N'ncicj', CAST(0x0000A25400AEFC18 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (238, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:37:28.', N'ncicj', CAST(0x0000A25400AF15E0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (239, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:37:31.', N'ncicj', CAST(0x0000A25400AF1964 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (240, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:37:39.', N'ncicj', CAST(0x0000A25400AF22C4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (241, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:37:46.', N'ncicj', CAST(0x0000A25400AF2AF8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (242, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:37:48.', N'ncicj', CAST(0x0000A25400AF2D50 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (243, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:38:47.', N'ncicj', CAST(0x0000A25400AF7274 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (244, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:20.', N'ncicj', CAST(0x0000A25400AF9920 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (245, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:20.', N'ncicj', CAST(0x0000A25400AF9920 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (246, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:20.', N'ncicj', CAST(0x0000A25400AF9920 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (247, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:23.', N'ncicj', CAST(0x0000A25400AF9CA4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (248, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:25.', N'ncicj', CAST(0x0000A25400AF9EFC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (249, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:29.', N'ncicj', CAST(0x0000A25400AFA3AC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (250, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:46.', N'ncicj', CAST(0x0000A25400AFB798 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (251, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:48.', N'ncicj', CAST(0x0000A25400AFB9F0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (252, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:39:51.', N'ncicj', CAST(0x0000A25400AFBD74 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (253, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:00.', N'ncicj', CAST(0x0000A25400AFC800 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (254, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:04.', N'ncicj', CAST(0x0000A25400AFCCB0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (255, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:04.', N'ncicj', CAST(0x0000A25400AFCCB0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (256, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:10.', N'ncicj', CAST(0x0000A25400AFD3B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (257, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:17.', N'ncicj', CAST(0x0000A25400AFDBEC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (258, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:17.', N'ncicj', CAST(0x0000A25400AFDBEC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (259, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:26.', N'ncicj', CAST(0x0000A25400AFE678 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (260, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:27.', N'ncicj', CAST(0x0000A25400AFE7A4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (261, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:38.', N'ncicj', CAST(0x0000A25400AFF488 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (262, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:39.', N'ncicj', CAST(0x0000A25400AFF5B4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (263, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:40:39.', N'ncicj', CAST(0x0000A25400AFF5B4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (264, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:55:52.', N'ncicj', CAST(0x0000A25400B423A0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (265, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:55:55.', N'ncicj', CAST(0x0000A25400B42724 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (266, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:56:25.', N'ncicj', CAST(0x0000A25400B44A4C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (267, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:56:25.', N'ncicj', CAST(0x0000A25400B44A4C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (268, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:57:42.', N'ncicj', CAST(0x0000A25400B4A488 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (269, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:57:45.', N'ncicj', CAST(0x0000A25400B4A80C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (270, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:58:33.', N'ncicj', CAST(0x0000A25400B4E04C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (271, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:58:37.', N'ncicj', CAST(0x0000A25400B4E4FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (272, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:59:57.', N'ncicj', CAST(0x0000A25400B542BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (273, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 10:59:59.', N'ncicj', CAST(0x0000A25400B54514 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (274, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:00:00.', N'ncicj', CAST(0x0000A25400B54640 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (275, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:01:16.', N'ncicj', CAST(0x0000A25400B59F50 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (276, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:01:22.', N'ncicj', CAST(0x0000A25400B5A658 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (277, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:02:56.', N'ncicj', CAST(0x0000A25400B61480 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (278, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:03:35.', N'ncicj', CAST(0x0000A25400B64234 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (279, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:03:35.', N'ncicj', CAST(0x0000A25400B64234 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (280, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:14:32.', N'ncicj', CAST(0x0000A25400B94420 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (281, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:14:32.', N'ncicj', CAST(0x0000A25400B94420 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (282, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:16:11.', N'ncicj', CAST(0x0000A25400B9B824 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (283, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:18:18.', N'ncicj', CAST(0x0000A25400BA4CF8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (284, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:18:24.', N'ncicj', CAST(0x0000A25400BA5400 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (285, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:18:48.', N'ncicj', CAST(0x0000A25400BA7020 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (286, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:20:20.', N'ncicj', CAST(0x0000A25400BADBF0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (287, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:20:25.', N'ncicj', CAST(0x0000A25400BAE1CC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (288, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:20:33.', N'ncicj', CAST(0x0000A25400BAEB2C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (289, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:20:37.', N'ncicj', CAST(0x0000A25400BAEFDC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (290, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:20:40.', N'ncicj', CAST(0x0000A25400BAF360 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (291, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:22:52.', N'ncicj', CAST(0x0000A25400BB8E10 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (292, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:23:03.', N'ncicj', CAST(0x0000A25400BB9AF4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (293, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:23:05.', N'ncicj', CAST(0x0000A25400BB9D4C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (294, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:26:51.', N'ncicj', CAST(0x0000A25400BCA624 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (295, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:27:18.', N'ncicj', CAST(0x0000A25400BCC5C8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (296, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:27:20.', N'ncicj', CAST(0x0000A25400BCC820 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (297, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:27:39.', N'ncicj', CAST(0x0000A25400BCDE64 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (298, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:27:42.', N'ncicj', CAST(0x0000A25400BCE1E8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (299, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:27:44.', N'ncicj', CAST(0x0000A25400BCE440 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (300, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:29:36.', N'ncicj', CAST(0x0000A25400BD6780 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (301, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 11:29:48.', N'ncicj', CAST(0x0000A25400BD7590 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (302, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 11:31:11.', N'ncicj', CAST(0x0000A25400BDD6D4 AS DateTime), N'29')
GO
print 'Processed 300 total records'
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (303, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 11:31:11.', N'ncicj', CAST(0x0000A25400BDD6D4 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (304, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 11:31:11.', N'ncicj', CAST(0x0000A25400BDD6D4 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (305, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:33:39.', N'ncicj', CAST(0x0000A25400BE8444 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (306, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:33:39.', N'ncicj', CAST(0x0000A25400BE8444 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (307, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:34:00.', N'ncicj', CAST(0x0000A25400BE9CE0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (308, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:34:09.', N'ncicj', CAST(0x0000A25400BEA76C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (309, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:34:30.', N'ncicj', CAST(0x0000A25400BEC008 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (310, N'User accessing report (UserID:admin;ReportID:) on 2013-10-11 11:34:37.', N'admin', CAST(0x0000A25400BEC83C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (311, N'User accessing report (UserID:admin;ReportID:) on 2013-10-11 11:34:41.', N'admin', CAST(0x0000A25400BECCEC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (312, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:35:25.', N'ncicj', CAST(0x0000A25400BF007C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (313, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:35:29.', N'ncicj', CAST(0x0000A25400BF052C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (314, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:35:59.', N'ncicj', CAST(0x0000A25400BF2854 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (315, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:36:28.', N'ncicj', CAST(0x0000A25400BF4A50 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (316, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:38:58.', N'ncicj', CAST(0x0000A25400BFFA18 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (317, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:39:02.', N'ncicj', CAST(0x0000A25400BFFEC8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (318, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:39:05.', N'ncicj', CAST(0x0000A25400C0024C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (319, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:39:36.', N'ncicj', CAST(0x0000A25400C026A0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (320, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:10.', N'ncicj', CAST(0x0000A25400C1F458 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (321, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:27.', N'ncicj', CAST(0x0000A25400C20844 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (322, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:28.', N'ncicj', CAST(0x0000A25400C20970 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (323, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:30.', N'ncicj', CAST(0x0000A25400C20BC8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (324, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:32.', N'ncicj', CAST(0x0000A25400C20E20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (325, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:33.', N'ncicj', CAST(0x0000A25400C20F4C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (326, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:34.', N'ncicj', CAST(0x0000A25400C21078 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (327, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:37.', N'ncicj', CAST(0x0000A25400C213FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (328, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:51.', N'ncicj', CAST(0x0000A25400C22464 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (329, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:51.', N'ncicj', CAST(0x0000A25400C22464 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (330, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:46:52.', N'ncicj', CAST(0x0000A25400C22590 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (331, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:47:11.', N'ncicj', CAST(0x0000A25400C23BD4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (332, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:47:42.', N'ncicj', CAST(0x0000A25400C26028 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (333, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:47:52.', N'ncicj', CAST(0x0000A25400C26BE0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (334, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:47:57.', N'ncicj', CAST(0x0000A25400C271BC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (335, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:48:00.', N'ncicj', CAST(0x0000A25400C27540 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (336, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:48:55.', N'ncicj', CAST(0x0000A25400C2B5B4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (337, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:49:02.', N'ncicj', CAST(0x0000A25400C2BDE8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (338, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:49:04.', N'ncicj', CAST(0x0000A25400C2C040 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (339, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:49:06.', N'ncicj', CAST(0x0000A25400C2C298 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (340, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:49:09.', N'ncicj', CAST(0x0000A25400C2C61C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (341, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:49:11.', N'ncicj', CAST(0x0000A25400C2C874 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (342, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:49:16.', N'ncicj', CAST(0x0000A25400C2CE50 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (343, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 11:49:42.', N'ncicj', CAST(0x0000A25400C2ECC8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (344, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:03:36.', N'ncicj', CAST(0x0000A25400C6BE20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (345, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:03:56.', N'ncicj', CAST(0x0000A25400C6D590 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (346, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:04:25.', N'ncicj', CAST(0x0000A25400C6F78C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (347, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:04:25.', N'ncicj', CAST(0x0000A25400C6F78C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (348, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:06:14.', N'ncicj', CAST(0x0000A25400C77748 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (349, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:06:16.', N'ncicj', CAST(0x0000A25400C779A0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (350, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:06:18.', N'ncicj', CAST(0x0000A25400C77BF8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (351, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:13:04.', N'ncicj', CAST(0x0000A25400C957C0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (352, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:14:19.', N'ncicj', CAST(0x0000A25400C9AFA4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (353, N'User login system (UID:ncicj) on 2013-10-11 12:14:31.', N'ncicj', CAST(0x0000A25400C9BDB4 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (354, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:14:31.', N'ncicj', CAST(0x0000A25400C9BDB4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (355, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:14:38.', N'ncicj', CAST(0x0000A25400C9C5E8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (356, N'User accessing report (UserID:ncicj;ReportID:30) on 2013-10-11 12:14:49.', N'ncicj', CAST(0x0000A25400C9D2CC AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (357, N'User accessing report (UserID:ncicj;ReportID:30) on 2013-10-11 12:15:03.', N'ncicj', CAST(0x0000A25400C9E334 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (358, N'User accessing report (UserID:ncicj;ReportID:33) on 2013-10-11 12:15:07.', N'ncicj', CAST(0x0000A25400C9E7E4 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (359, N'User accessing report (UserID:ncicj;ReportID:33) on 2013-10-11 12:15:28.', N'ncicj', CAST(0x0000A25400CA0080 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (360, N'User accessing report (UserID:ncicj;ReportID:33) on 2013-10-11 12:15:30.', N'ncicj', CAST(0x0000A25400CA02D8 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (361, N'User accessing report (UserID:ncicj;ReportID:33) on 2013-10-11 12:16:45.', N'ncicj', CAST(0x0000A25400CA5ABC AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (362, N'User accessing report (UserID:ncicj;ReportID:33) on 2013-10-11 12:16:47.', N'ncicj', CAST(0x0000A25400CA5D14 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (363, N'User accessing report (UserID:ncicj;ReportID:32) on 2013-10-11 12:16:51.', N'ncicj', CAST(0x0000A25400CA61C4 AS DateTime), N'32')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (364, N'User accessing report (UserID:ncicj;ReportID:32) on 2013-10-11 12:16:56.', N'ncicj', CAST(0x0000A25400CA67A0 AS DateTime), N'32')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (365, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 12:16:58.', N'ncicj', CAST(0x0000A25400CA69F8 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (366, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 12:17:13.', N'ncicj', CAST(0x0000A25400CA7B8C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (367, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 12:17:15.', N'ncicj', CAST(0x0000A25400CA7DE4 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (368, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 12:18:12.', N'ncicj', CAST(0x0000A25400CAC0B0 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (369, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:18:20.', N'ncicj', CAST(0x0000A25400CACA10 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (370, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:18:21.', N'ncicj', CAST(0x0000A25400CACB3C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (371, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:19:34.', N'ncicj', CAST(0x0000A25400CB20C8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (372, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:19:36.', N'ncicj', CAST(0x0000A25400CB2320 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (373, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:19:41.', N'ncicj', CAST(0x0000A25400CB28FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (374, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:19:43.', N'ncicj', CAST(0x0000A25400CB2B54 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (375, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:18.', N'ncicj', CAST(0x0000A25400CBE0F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (376, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:21.', N'ncicj', CAST(0x0000A25400CBE47C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (377, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:22.', N'ncicj', CAST(0x0000A25400CBE5A8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (378, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:25.', N'ncicj', CAST(0x0000A25400CBE92C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (379, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:31.', N'ncicj', CAST(0x0000A25400CBF034 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (380, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:32.', N'ncicj', CAST(0x0000A25400CBF160 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (381, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:33.', N'ncicj', CAST(0x0000A25400CBF28C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (382, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:34.', N'ncicj', CAST(0x0000A25400CBF3B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (383, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:52.', N'ncicj', CAST(0x0000A25400CC08D0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (384, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:53.', N'ncicj', CAST(0x0000A25400CC09FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (385, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:22:53.', N'ncicj', CAST(0x0000A25400CC09FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (386, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:23:26.', N'ncicj', CAST(0x0000A25400CC30A8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (387, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:23:27.', N'ncicj', CAST(0x0000A25400CC31D4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (388, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:24:26.', N'ncicj', CAST(0x0000A25400CC76F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (389, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:25:05.', N'ncicj', CAST(0x0000A25400CCA4AC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (390, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:25:30.', N'ncicj', CAST(0x0000A25400CCC1F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (391, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 12:25:31.', N'ncicj', CAST(0x0000A25400CCC324 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (392, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-11 12:25:33.', N'ncicj', CAST(0x0000A25400CCC57C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (393, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:25:35.', N'ncicj', CAST(0x0000A25400CCC7D4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (394, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-11 12:25:37.', N'ncicj', CAST(0x0000A25400CCCA2C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (395, N'User accessing report (UserID:;ReportID:) on 2013-10-16 11:20:31.', N'', CAST(0x0000A25900BAE8D4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (396, N'User login system (UID:ncicj) on 2013-10-16 11:20:43.', N'ncicj', CAST(0x0000A25900BAF6E4 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (397, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 11:20:43.', N'ncicj', CAST(0x0000A25900BAF6E4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (398, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 11:20:47.', N'ncicj', CAST(0x0000A25900BAFB94 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (399, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 11:20:51.', N'ncicj', CAST(0x0000A25900BB0044 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (400, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 11:20:54.', N'ncicj', CAST(0x0000A25900BB03C8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (401, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 11:21:46.', N'ncicj', CAST(0x0000A25900BB40B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (402, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 11:21:47.', N'ncicj', CAST(0x0000A25900BB41E4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (403, N'User login system (UID:ncicj) on 2013-10-16 14:14:37.', N'ncicj', CAST(0x0000A25900EABA3C AS DateTime), NULL)
GO
print 'Processed 400 total records'
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (404, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:14:37.', N'ncicj', CAST(0x0000A25900EABA3C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (405, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:14:39.', N'ncicj', CAST(0x0000A25900EABC94 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (406, N'User login system (UID:ncicj) on 2013-10-16 14:26:20.', N'ncicj', CAST(0x0000A25900EDF210 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (407, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:26:20.', N'ncicj', CAST(0x0000A25900EDF210 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (408, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:26:26.', N'ncicj', CAST(0x0000A25900EDF918 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (409, N'User accessing report (UserID:ncicj;ReportID:28) on 2013-10-16 14:26:35.', N'ncicj', CAST(0x0000A25900EE03A4 AS DateTime), N'28')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (410, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:26:49.', N'ncicj', CAST(0x0000A25900EE140C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (411, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:28:40.', N'ncicj', CAST(0x0000A25900EE9620 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (412, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:30:31.', N'ncicj', CAST(0x0000A25900EF1834 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (413, N'User accessing report (UserID:ncicj;ReportID:30) on 2013-10-16 14:30:33.', N'ncicj', CAST(0x0000A25900EF1A8C AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (414, N'User accessing report (UserID:ncicj;ReportID:30) on 2013-10-16 14:30:35.', N'ncicj', CAST(0x0000A25900EF1CE4 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (415, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:30:48.', N'ncicj', CAST(0x0000A25900EF2C20 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (416, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:30:52.', N'ncicj', CAST(0x0000A25900EF30D0 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (417, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:31:04.', N'ncicj', CAST(0x0000A25900EF3EE0 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (418, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:31:05.', N'ncicj', CAST(0x0000A25900EF400C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (419, N'User accessing report (UserID:ncicj;ReportID:29) on 2013-10-16 14:31:29.', N'ncicj', CAST(0x0000A25900EF5C2C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (420, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:31:38.', N'ncicj', CAST(0x0000A25900EF66B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (421, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:32:20.', N'ncicj', CAST(0x0000A25900EF97F0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (422, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:33:02.', N'ncicj', CAST(0x0000A25900EFC928 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (423, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:33:36.', N'ncicj', CAST(0x0000A25900EFF100 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (424, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:33:36.', N'ncicj', CAST(0x0000A25900EFF100 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (425, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:33:36.', N'ncicj', CAST(0x0000A25900EFF100 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (426, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:33:36.', N'ncicj', CAST(0x0000A25900EFF100 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (427, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:33:38.', N'ncicj', CAST(0x0000A25900EFF358 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (428, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:35:28.', N'ncicj', CAST(0x0000A25900F07440 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (429, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:37:10.', N'ncicj', CAST(0x0000A25900F0EBC8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (430, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:37:12.', N'ncicj', CAST(0x0000A25900F0EE20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (431, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:37:29.', N'ncicj', CAST(0x0000A25900F1020C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (432, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:37:52.', N'ncicj', CAST(0x0000A25900F11D00 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (433, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:37:53.', N'ncicj', CAST(0x0000A25900F11E2C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (434, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:38:46.', N'ncicj', CAST(0x0000A25900F15C48 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (435, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:38:51.', N'ncicj', CAST(0x0000A25900F16224 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (436, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:38:59.', N'ncicj', CAST(0x0000A25900F16B84 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (437, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:39:00.', N'ncicj', CAST(0x0000A25900F16CB0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (438, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:39:14.', N'ncicj', CAST(0x0000A25900F17D18 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (439, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:39:15.', N'ncicj', CAST(0x0000A25900F17E44 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (440, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:40:17.', N'ncicj', CAST(0x0000A25900F1C6EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (441, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:40:24.', N'ncicj', CAST(0x0000A25900F1CF20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (442, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:40:39.', N'ncicj', CAST(0x0000A25900F1E0B4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (443, N'User login system (UID:ncicj) on 2013-10-16 14:40:58.', N'ncicj', CAST(0x0000A25900F1F6F8 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (444, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:40:58.', N'ncicj', CAST(0x0000A25900F1F6F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (445, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:41:01.', N'ncicj', CAST(0x0000A25900F1FA7C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (446, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:41:13.', N'ncicj', CAST(0x0000A25900F2088C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (447, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:41:19.', N'ncicj', CAST(0x0000A25900F20F94 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (448, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:42:09.', N'ncicj', CAST(0x0000A25900F24A2C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (449, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:42:12.', N'ncicj', CAST(0x0000A25900F24DB0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (450, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:42:13.', N'ncicj', CAST(0x0000A25900F24EDC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (451, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:42:16.', N'ncicj', CAST(0x0000A25900F25260 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (452, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:42:21.', N'ncicj', CAST(0x0000A25900F2583C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (453, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:42:33.', N'ncicj', CAST(0x0000A25900F2664C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (454, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:03.', N'ncicj', CAST(0x0000A25900F28974 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (455, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:05.', N'ncicj', CAST(0x0000A25900F28BCC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (456, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:23.', N'ncicj', CAST(0x0000A25900F2A0E4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (457, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:25.', N'ncicj', CAST(0x0000A25900F2A33C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (458, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:26.', N'ncicj', CAST(0x0000A25900F2A468 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (459, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:30.', N'ncicj', CAST(0x0000A25900F2A918 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (460, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:31.', N'ncicj', CAST(0x0000A25900F2AA44 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (461, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:43:32.', N'ncicj', CAST(0x0000A25900F2AB70 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (462, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:44:24.', N'ncicj', CAST(0x0000A25900F2E860 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (463, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:44:26.', N'ncicj', CAST(0x0000A25900F2EAB8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (464, N'User accessing report (UserID:ncicj;ReportID:) on 2013-10-16 14:44:29.', N'ncicj', CAST(0x0000A25900F2EE3C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (465, N'User accessing report (UserID:;ReportID:) on 2013-11-05 10:17:41.', N'', CAST(0x0000A26D00A9A6DC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (466, N'User accessing report (UserID:;ReportID:) on 2013-11-05 10:17:44.', N'', CAST(0x0000A26D00A9AA60 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (467, N'User login system (UID:NCICJ) on 2013-11-05 10:17:56.', N'NCICJ', CAST(0x0000A26D00A9B870 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (468, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:17:56.', N'NCICJ', CAST(0x0000A26D00A9B870 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (469, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:17:59.', N'NCICJ', CAST(0x0000A26D00A9BBF4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (470, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:18:00.', N'NCICJ', CAST(0x0000A26D00A9BD20 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (471, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:18:11.', N'NCICJ', CAST(0x0000A26D00A9CA04 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (472, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:18:15.', N'NCICJ', CAST(0x0000A26D00A9CEB4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (473, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:18:25.', N'NCICJ', CAST(0x0000A26D00A9DA6C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (474, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:18:32.', N'NCICJ', CAST(0x0000A26D00A9E2A0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (475, N'User accessing report (UserID:NCICJ;ReportID:37) on 2013-11-05 10:18:33.', N'NCICJ', CAST(0x0000A26D00A9E3CC AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (476, N'User accessing report (UserID:NCICJ;ReportID:37) on 2013-11-05 10:19:02.', N'NCICJ', CAST(0x0000A26D00AA05C8 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (477, N'User accessing report (UserID:NCICJ;ReportID:37) on 2013-11-05 10:19:20.', N'NCICJ', CAST(0x0000A26D00AA1AE0 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (478, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:19:24.', N'NCICJ', CAST(0x0000A26D00AA1F90 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (479, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:21:15.', N'NCICJ', CAST(0x0000A26D00AAA1A4 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (480, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:21:54.', N'NCICJ', CAST(0x0000A26D00AACF58 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (481, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:21:55.', N'NCICJ', CAST(0x0000A26D00AAD084 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (482, N'User accessing report (UserID:NCICJ;ReportID:37) on 2013-11-05 10:21:55.', N'NCICJ', CAST(0x0000A26D00AAD084 AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (483, N'User accessing report (UserID:NCICJ;ReportID:37) on 2013-11-05 10:21:57.', N'NCICJ', CAST(0x0000A26D00AAD2DC AS DateTime), N'37')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (484, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:21:57.', N'NCICJ', CAST(0x0000A26D00AAD2DC AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (485, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:00.', N'NCICJ', CAST(0x0000A26D00AAD660 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (486, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:05.', N'NCICJ', CAST(0x0000A26D00AADC3C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (487, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:24.', N'NCICJ', CAST(0x0000A26D00AAF280 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (488, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:26.', N'NCICJ', CAST(0x0000A26D00AAF4D8 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (489, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:38.', N'NCICJ', CAST(0x0000A26D00AB02E8 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (490, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:39.', N'NCICJ', CAST(0x0000A26D00AB0414 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (491, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:52.', N'NCICJ', CAST(0x0000A26D00AB1350 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (492, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:52.', N'NCICJ', CAST(0x0000A26D00AB1350 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (493, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:56.', N'NCICJ', CAST(0x0000A26D00AB1800 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (494, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:22:57.', N'NCICJ', CAST(0x0000A26D00AB192C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (495, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:23:09.', N'NCICJ', CAST(0x0000A26D00AB273C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (496, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:23:10.', N'NCICJ', CAST(0x0000A26D00AB2868 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (497, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:23:24.', N'NCICJ', CAST(0x0000A26D00AB38D0 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (498, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:23:24.', N'NCICJ', CAST(0x0000A26D00AB38D0 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (499, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:24:02.', N'NCICJ', CAST(0x0000A26D00AB6558 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (500, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:06.', N'NCICJ', CAST(0x0000A26D00AB6A08 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (501, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:15.', N'NCICJ', CAST(0x0000A26D00AB7494 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (502, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:19.', N'NCICJ', CAST(0x0000A26D00AB7944 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (503, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:21.', N'NCICJ', CAST(0x0000A26D00AB7B9C AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (504, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:25.', N'NCICJ', CAST(0x0000A26D00AB804C AS DateTime), N'30')
GO
print 'Processed 500 total records'
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (505, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:31.', N'NCICJ', CAST(0x0000A26D00AB8754 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (506, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:31.', N'NCICJ', CAST(0x0000A26D00AB8754 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (507, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:42.', N'NCICJ', CAST(0x0000A26D00AB9438 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (508, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:42.', N'NCICJ', CAST(0x0000A26D00AB9438 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (509, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:54.', N'NCICJ', CAST(0x0000A26D00ABA248 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (510, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:24:54.', N'NCICJ', CAST(0x0000A26D00ABA248 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (511, N'User accessing report (UserID:NCICJ;ReportID:30) on 2013-11-05 10:25:11.', N'NCICJ', CAST(0x0000A26D00ABB634 AS DateTime), N'30')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (512, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:25:14.', N'NCICJ', CAST(0x0000A26D00ABB9B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (513, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:25:22.', N'NCICJ', CAST(0x0000A26D00ABC318 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (514, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:25:23.', N'NCICJ', CAST(0x0000A26D00ABC444 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (515, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:25:50.', N'NCICJ', CAST(0x0000A26D00ABE3E8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (516, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:25:54.', N'NCICJ', CAST(0x0000A26D00ABE898 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (517, N'User accessing report (UserID:NCICJ;ReportID:33) on 2013-11-05 10:26:01.', N'NCICJ', CAST(0x0000A26D00ABF0CC AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (518, N'User accessing report (UserID:NCICJ;ReportID:33) on 2013-11-05 10:26:10.', N'NCICJ', CAST(0x0000A26D00ABFB58 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (519, N'User accessing report (UserID:NCICJ;ReportID:33) on 2013-11-05 10:26:11.', N'NCICJ', CAST(0x0000A26D00ABFC84 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (520, N'User accessing report (UserID:NCICJ;ReportID:33) on 2013-11-05 10:26:21.', N'NCICJ', CAST(0x0000A26D00AC083C AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (521, N'User accessing report (UserID:NCICJ;ReportID:33) on 2013-11-05 10:26:26.', N'NCICJ', CAST(0x0000A26D00AC0E18 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (522, N'User accessing report (UserID:NCICJ;ReportID:33) on 2013-11-05 10:27:51.', N'NCICJ', CAST(0x0000A26D00AC71B4 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (523, N'User accessing report (UserID:NCICJ;ReportID:33) on 2013-11-05 10:27:54.', N'NCICJ', CAST(0x0000A26D00AC7538 AS DateTime), N'33')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (524, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:37:55.', N'NCICJ', CAST(0x0000A26D00AF3584 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (525, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:38:04.', N'NCICJ', CAST(0x0000A26D00AF4010 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (526, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:38:05.', N'NCICJ', CAST(0x0000A26D00AF413C AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (527, N'User accessing report (UserID:NCICJ;ReportID:29) on 2013-11-05 10:45:35.', N'NCICJ', CAST(0x0000A26D00B15094 AS DateTime), N'29')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (528, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:45:38.', N'NCICJ', CAST(0x0000A26D00B15418 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (529, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:45:39.', N'NCICJ', CAST(0x0000A26D00B15544 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (530, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:46:21.', N'NCICJ', CAST(0x0000A26D00B1867C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (531, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:46:23.', N'NCICJ', CAST(0x0000A26D00B188D4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (532, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:46:24.', N'NCICJ', CAST(0x0000A26D00B18A00 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (533, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:47:57.', N'NCICJ', CAST(0x0000A26D00B1F6FC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (534, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:48:22.', N'NCICJ', CAST(0x0000A26D00B21448 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (535, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:48:26.', N'NCICJ', CAST(0x0000A26D00B218F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (536, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:48:27.', N'NCICJ', CAST(0x0000A26D00B21A24 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (537, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:48:48.', N'NCICJ', CAST(0x0000A26D00B232C0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (538, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:40.', N'NCICJ', CAST(0x0000A26D00B4A230 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (539, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:41.', N'NCICJ', CAST(0x0000A26D00B4A35C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (540, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:44.', N'NCICJ', CAST(0x0000A26D00B4A6E0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (541, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:46.', N'NCICJ', CAST(0x0000A26D00B4A938 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (542, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:47.', N'NCICJ', CAST(0x0000A26D00B4AA64 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (543, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:49.', N'NCICJ', CAST(0x0000A26D00B4ACBC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (544, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:51.', N'NCICJ', CAST(0x0000A26D00B4AF14 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (545, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:52.', N'NCICJ', CAST(0x0000A26D00B4B040 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (546, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:54.', N'NCICJ', CAST(0x0000A26D00B4B298 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (547, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:56.', N'NCICJ', CAST(0x0000A26D00B4B4F0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (548, N'User accessing report (UserID:NCICJ;ReportID:) on 2013-11-05 10:57:57.', N'NCICJ', CAST(0x0000A26D00B4B61C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (549, N'User accessing report (UserID:;ReportID:) on 2013-11-18 09:32:31.', N'', CAST(0x0000A27A009D3F14 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (550, N'User accessing report (UserID:;ReportID:) on 2013-12-03 11:30:33.', N'', CAST(0x0000A28900BDAA4C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (551, N'User login system (UID:ncicj) on 2013-12-03 11:30:43.', N'ncicj', CAST(0x0000A28900BDB604 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (552, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:30:43.', N'ncicj', CAST(0x0000A28900BDB604 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (553, N'User accessing report (UserID:;ReportID:) on 2013-12-03 11:31:02.', N'', CAST(0x0000A28900BDCC48 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (554, N'User login system (UID:ncicj) on 2013-12-03 11:31:09.', N'ncicj', CAST(0x0000A28900BDD47C AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (555, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:09.', N'ncicj', CAST(0x0000A28900BDD47C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (556, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:15.', N'ncicj', CAST(0x0000A28900BDDB84 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (557, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:20.', N'ncicj', CAST(0x0000A28900BDE160 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (558, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:29.', N'ncicj', CAST(0x0000A28900BDEBEC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (559, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:34.', N'ncicj', CAST(0x0000A28900BDF1C8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (560, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:34.', N'ncicj', CAST(0x0000A28900BDF1C8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (561, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:51.', N'ncicj', CAST(0x0000A28900BE05B4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (562, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 11:31:55.', N'ncicj', CAST(0x0000A28900BE0A64 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (563, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 12:10:11.', N'ncicj', CAST(0x0000A28900C88D04 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (564, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 14:40:08.', N'ncicj', CAST(0x0000A28900F1BC60 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (565, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 14:40:10.', N'ncicj', CAST(0x0000A28900F1BEB8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (566, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-03 14:40:10.', N'ncicj', CAST(0x0000A28900F1BEB8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (567, N'User accessing report (UserID:;ReportID:) on 2013-12-05 15:45:09.', N'', CAST(0x0000A28B010397DC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (568, N'User login system (UID:ncicj) on 2013-12-05 15:45:19.', N'ncicj', CAST(0x0000A28B0103A394 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (569, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 15:45:19.', N'ncicj', CAST(0x0000A28B0103A394 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (570, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:58:39.', N'ncicj', CAST(0x0000A28B00837714 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (571, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:58:44.', N'ncicj', CAST(0x0000A28B00837CF0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (572, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:58:47.', N'ncicj', CAST(0x0000A28B00838074 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (573, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:58:50.', N'ncicj', CAST(0x0000A28B008383F8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (574, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:00.', N'ncicj', CAST(0x0000A28B00838FB0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (575, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:01.', N'ncicj', CAST(0x0000A28B008390DC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (576, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:02.', N'ncicj', CAST(0x0000A28B00839208 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (577, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:05.', N'ncicj', CAST(0x0000A28B0083958C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (578, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:07.', N'ncicj', CAST(0x0000A28B008397E4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (579, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:08.', N'ncicj', CAST(0x0000A28B00839910 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (580, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:11.', N'ncicj', CAST(0x0000A28B00839C94 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (581, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:13.', N'ncicj', CAST(0x0000A28B00839EEC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (582, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:14.', N'ncicj', CAST(0x0000A28B0083A018 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (583, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:15.', N'ncicj', CAST(0x0000A28B0083A144 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (584, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:21.', N'ncicj', CAST(0x0000A28B0083A84C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (585, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 07:59:32.', N'ncicj', CAST(0x0000A28B0083B530 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (586, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 08:07:04.', N'ncicj', CAST(0x0000A28B0085C6E0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (587, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 08:07:09.', N'ncicj', CAST(0x0000A28B0085CCBC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (588, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 08:07:10.', N'ncicj', CAST(0x0000A28B0085CDE8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (589, N'User login system (UID:ncicj) on 2013-12-05 08:07:24.', N'ncicj', CAST(0x0000A28B0085DE50 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (590, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 08:07:24.', N'ncicj', CAST(0x0000A28B0085DE50 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (591, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 08:07:49.', N'ncicj', CAST(0x0000A28B0085FB9C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (592, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 08:07:51.', N'ncicj', CAST(0x0000A28B0085FDF4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (593, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 16:14:36.', N'ncicj', CAST(0x0000A28B010BAE90 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (594, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 16:14:38.', N'ncicj', CAST(0x0000A28B010BB0E8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (595, N'User login system (UID:ncicj) on 2013-12-05 16:17:53.', N'ncicj', CAST(0x0000A28B010C956C AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (596, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-05 16:17:53.', N'ncicj', CAST(0x0000A28B010C956C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (597, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:00:34.', N'ncicj', CAST(0x0000A28C00F75918 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (598, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:02:02.', N'ncicj', CAST(0x0000A28C00F7C038 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (599, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:02:10.', N'ncicj', CAST(0x0000A28C00F7C998 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (600, N'User accessing report (UserID:;ReportID:) on 2013-12-06 15:02:19.', N'', CAST(0x0000A28C00F7D424 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (601, N'User accessing report (UserID:;ReportID:) on 2013-12-06 15:29:13.', N'', CAST(0x0000A28C00FF378C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (602, N'User login system (UID:ncicj) on 2013-12-06 15:43:52.', N'ncicj', CAST(0x0000A28C01033DA0 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (603, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:43:52.', N'ncicj', CAST(0x0000A28C01033DA0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (604, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:43:59.', N'ncicj', CAST(0x0000A28C010345D4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (605, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:44:05.', N'ncicj', CAST(0x0000A28C01034CDC AS DateTime), N'')
GO
print 'Processed 600 total records'
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (606, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:44:08.', N'ncicj', CAST(0x0000A28C01035060 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (607, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:44:10.', N'ncicj', CAST(0x0000A28C010352B8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (608, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:44:14.', N'ncicj', CAST(0x0000A28C01035768 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (609, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:44:14.', N'ncicj', CAST(0x0000A28C01035768 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (610, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:45:25.', N'ncicj', CAST(0x0000A28C0103AA9C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (611, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-06 15:45:26.', N'ncicj', CAST(0x0000A28C0103ABC8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (612, N'User accessing report (UserID:;ReportID:) on 2013-12-09 10:48:48.', N'', CAST(0x0000A28F00B232C0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (613, N'User login system (UID:ncicj) on 2013-12-09 10:48:55.', N'ncicj', CAST(0x0000A28F00B23AF4 AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (614, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:48:55.', N'ncicj', CAST(0x0000A28F00B23AF4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (615, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:49:11.', N'ncicj', CAST(0x0000A28F00B24DB4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (616, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:50:00.', N'ncicj', CAST(0x0000A28F00B28720 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (617, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:50:02.', N'ncicj', CAST(0x0000A28F00B28978 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (618, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:50:49.', N'ncicj', CAST(0x0000A28F00B2C08C AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (619, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:51:03.', N'ncicj', CAST(0x0000A28F00B2D0F4 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (620, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:51:54.', N'ncicj', CAST(0x0000A28F00B30CB8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (621, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:51:56.', N'ncicj', CAST(0x0000A28F00B30F10 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (622, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:51:59.', N'ncicj', CAST(0x0000A28F00B31294 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (623, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:57:38.', N'ncicj', CAST(0x0000A28F00B49FD8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (624, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:57:40.', N'ncicj', CAST(0x0000A28F00B4A230 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (625, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:58:25.', N'ncicj', CAST(0x0000A28F00B4D6EC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (626, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:58:27.', N'ncicj', CAST(0x0000A28F00B4D944 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (627, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 10:58:55.', N'ncicj', CAST(0x0000A28F00B4FA14 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (628, N'User login system (UID:ncicj) on 2013-12-09 11:05:29.', N'ncicj', CAST(0x0000A28F00B6C7CC AS DateTime), NULL)
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (629, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 11:05:29.', N'ncicj', CAST(0x0000A28F00B6C7CC AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (630, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 11:05:34.', N'ncicj', CAST(0x0000A28F00B6CDA8 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (631, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 11:05:52.', N'ncicj', CAST(0x0000A28F00B6E2C0 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (632, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 11:06:02.', N'ncicj', CAST(0x0000A28F00B6EE78 AS DateTime), N'')
INSERT [dbo].[auditLog] ([id], [auditlog], [userID], [createdOn], [rptID]) VALUES (633, N'User accessing report (UserID:ncicj;ReportID:) on 2013-12-09 11:06:10.', N'ncicj', CAST(0x0000A28F00B6F7D8 AS DateTime), N'')
SET IDENTITY_INSERT [dbo].[auditLog] OFF
/****** Object:  Table [dbo].[MetadataTableAttributes]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[MetadataTableAttributes](
	[TableAttributeId] [int] IDENTITY(1,1) NOT NULL,
	[TableAttributeName] [varchar](50) NOT NULL,
	[TableAttributeDescription] [varchar](1000) NULL,
 CONSTRAINT [PK_MetadataTableAttributes] PRIMARY KEY CLUSTERED 
(
	[TableAttributeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[MetadataTableAttributes] ON
INSERT [dbo].[MetadataTableAttributes] ([TableAttributeId], [TableAttributeName], [TableAttributeDescription]) VALUES (1, N'dataSource', N'')
INSERT [dbo].[MetadataTableAttributes] ([TableAttributeId], [TableAttributeName], [TableAttributeDescription]) VALUES (2, N'dataType', N'')
INSERT [dbo].[MetadataTableAttributes] ([TableAttributeId], [TableAttributeName], [TableAttributeDescription]) VALUES (3, N'data_filter1', N'')
INSERT [dbo].[MetadataTableAttributes] ([TableAttributeId], [TableAttributeName], [TableAttributeDescription]) VALUES (4, N'CancerSite', N'')
INSERT [dbo].[MetadataTableAttributes] ([TableAttributeId], [TableAttributeName], [TableAttributeDescription]) VALUES (5, N'statsType', N'')
SET IDENTITY_INSERT [dbo].[MetadataTableAttributes] OFF
/****** Object:  Table [dbo].[MetadataTables]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[MetadataTables](
	[TableId] [int] IDENTITY(1,1) NOT NULL,
	[TableName] [varchar](50) NOT NULL,
	[TableDescription] [varchar](1000) NULL,
	[TableLabel] [varchar](50) NULL,
	[createdBy] [nchar](100) NULL,
	[createdOn] [datetime] NULL,
	[updatedBy] [nchar](100) NULL,
	[updatedOn] [datetime] NULL,
	[status] [nchar](10) NULL,
	[fileName] [nchar](500) NULL,
	[isRpt] [smallint] NULL,
	[categories] [nchar](20) NULL,
 CONSTRAINT [PK_MetadataTables] PRIMARY KEY CLUSTERED 
(
	[TableId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[MetadataTables] ON
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (1, N'First test', N'this is the demo report.', N'First test', N'admin                                                                                               ', CAST(0x0000A18D00000000 AS DateTime), N'admin                                                                                               ', CAST(0x0000A19700000000 AS DateTime), N'Active    ', N'staticReports/media modules AY2012-14.pdf                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ', 0, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (2, N'First test', N'this is the frist test', N'First test', N'admin                                                                                               ', CAST(0x0000A18D00000000 AS DateTime), NULL, NULL, N'Active    ', N'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ', 0, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (25, N'DRO Monthly Reports', N'this is another test report', N'DRO Monthly Reports', N'admin                                                                                               ', CAST(0x0000A18F00000000 AS DateTime), NULL, NULL, N'Active    ', N'staticReports/E-Ticket 18032013.pdf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ', 0, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (26, N'DCI monthly report', N'this is another test ', N'DCI monthly report', N'admin                                                                                               ', CAST(0x0000A18F00000000 AS DateTime), N'admin                                                                                               ', CAST(0x0000A18F00000000 AS DateTime), N'Active    ', N'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ', 0, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (27, N'DMO report1', N'dfsfd', N'DMO report1', N'admin                                                                                               ', CAST(0x0000A18F00000000 AS DateTime), NULL, NULL, N'          ', N'staticReports/preliminary_program.pdf                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ', 0, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (28, N'DRO TEST1', N'TEST', N'DRO TEST1', N'admin                                                                                               ', CAST(0x0000A25200000000 AS DateTime), NULL, NULL, N'Active    ', N'staticReports/Fuwell070213.pdf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ', 0, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (29, N'SOC Attendance', N'This report contain summary information for a specific period of SOC attendance', N'SOC Attendance', N'admin                                                                                               ', CAST(0x0000A25200000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/SOC/SOC_Attendance_by_month.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ', 1, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (30, N'SOC Workload By Day', N'This report will display number of patient seen in the clinic for a specific date. ', N'SOC Workload By Day', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/SOC/SOC_Clinics_Utilization.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ', 1, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (31, N'ATU patient count by date', N'Report show the patient count in ATU for a specific day', N'ATU patient count by date', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/ATU/ATUWorkload.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ', 1, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (32, N'ATU monthly workload', N'Report show the monthly workload for ATU', N'ATU monthly workload', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/ATU/ATU_monthly_workload.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ', 1, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (33, N'DRO treatment count', N'Report shows the number of cases treated in DRO for a specific day. ', N'DRO treatment count', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/DRO/treatmentCount.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ', 1, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (34, N'Breast Ca Summary Stats', N'Summary statistics for Breast Ca 2006', N'Breast Ca Summary Stats', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/canStat/BCa_demography.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ', 1, N'fact                ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (35, N'Breast Ca Survival', N'Survival analysis on Breast Ca 2006 data', N'Breast Ca Survival', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/canStat/BCa_survival.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ', 1, N'fact                ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (36, N'System Audit', N'', N'System Audit', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'          ', N'dynamic_rpt/DRO/systemAudit.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ', 1, N'rpt                 ')
INSERT [dbo].[MetadataTables] ([TableId], [TableName], [TableDescription], [TableLabel], [createdBy], [createdOn], [updatedBy], [updatedOn], [status], [fileName], [isRpt], [categories]) VALUES (37, N'System Audit', N'', N'System Audit', N'admin                                                                                               ', CAST(0x0000A25300000000 AS DateTime), NULL, NULL, N'Active    ', N'dynamic_rpt/DRO/systemAudit.aspx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ', 1, N'rpt                 ')
SET IDENTITY_INSERT [dbo].[MetadataTables] OFF
/****** Object:  View [dbo].[vw_aspnet_Applications]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_Applications]
  AS SELECT [dbo].[aspnet_Applications].[ApplicationName], [dbo].[aspnet_Applications].[LoweredApplicationName], [dbo].[aspnet_Applications].[ApplicationId], [dbo].[aspnet_Applications].[Description]
  FROM [dbo].[aspnet_Applications]
GO
/****** Object:  Table [dbo].[MetadataTableAttributeValues]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[MetadataTableAttributeValues](
	[TableId] [int] NOT NULL,
	[TableAttributeId] [int] NOT NULL,
	[TableAttributeValueId] [int] IDENTITY(1,1) NOT NULL,
	[TableAttributeValue] [varchar](255) NOT NULL,
 CONSTRAINT [PK_MetadataTableAttributeValues] PRIMARY KEY CLUSTERED 
(
	[TableAttributeValueId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[MetadataTableAttributeValues] ON
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 1, 1, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 1, 2, N'CAISIS')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 1, 3, N'BTB')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 1, 4, N'OAS')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 2, 5, N'Clinical Data')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 2, 6, N'Clinical Research')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 2, 7, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 2, 8, N'Quality Control')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 3, 9, N'For Fun Only')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (1, 3, 10, N'For Work')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (2, 1, 11, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (2, 2, 14, N'Clinical Data')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (25, 1, 26, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (25, 2, 27, N'Clinical Data')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (26, 1, 28, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (26, 2, 29, N'Clinical Research')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (27, 1, 30, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (27, 2, 31, N'Clinical Data')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (28, 1, 32, N'OAS')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (28, 2, 33, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (29, 1, 34, N'OAS')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (29, 2, 35, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (30, 1, 36, N'OAS')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (30, 2, 37, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (31, 1, 38, N'OAS')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (31, 2, 39, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (32, 1, 40, N'OAS')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (32, 2, 41, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (33, 1, 42, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (33, 2, 43, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (34, 4, 44, N'Breast')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (34, 5, 45, N'Aggregate')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (35, 4, 46, N'Breast')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (35, 5, 47, N'Survival')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (36, 1, 48, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (36, 2, 49, N'Operational')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (37, 1, 50, N'MOSAIQ')
INSERT [dbo].[MetadataTableAttributeValues] ([TableId], [TableAttributeId], [TableAttributeValueId], [TableAttributeValue]) VALUES (37, 2, 51, N'Clinical Data')
SET IDENTITY_INSERT [dbo].[MetadataTableAttributeValues] OFF
/****** Object:  View [dbo].[metadataRoleAssignment]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[metadataRoleAssignment]
AS
SELECT     dbo.roleReportMapping.tableID, dbo.rolesDef.roleName, dbo.roleReportMapping.createdBy, dbo.roleReportMapping.createdOn, dbo.roleReportMapping.updatedBy, 
                      dbo.roleReportMapping.updatedOn
FROM         dbo.roleReportMapping INNER JOIN
                      dbo.rolesDef ON dbo.roleReportMapping.roleID = dbo.rolesDef.roleID
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "roleReportMapping"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 125
               Right = 181
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "rolesDef"
            Begin Extent = 
               Top = 6
               Left = 219
               Bottom = 95
               Right = 361
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'metadataRoleAssignment'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'metadataRoleAssignment'
GO
/****** Object:  StoredProcedure [dbo].[aspnet_WebEvent_LogEvent]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_WebEvent_LogEvent]
        @EventId         char(32),
        @EventTimeUtc    datetime,
        @EventTime       datetime,
        @EventType       nvarchar(256),
        @EventSequence   decimal(19,0),
        @EventOccurrence decimal(19,0),
        @EventCode       int,
        @EventDetailCode int,
        @Message         nvarchar(1024),
        @ApplicationPath nvarchar(256),
        @ApplicationVirtualPath nvarchar(256),
        @MachineName    nvarchar(256),
        @RequestUrl      nvarchar(1024),
        @ExceptionType   nvarchar(256),
        @Details         ntext
AS
BEGIN
    INSERT
        dbo.aspnet_WebEvent_Events
        (
            EventId,
            EventTimeUtc,
            EventTime,
            EventType,
            EventSequence,
            EventOccurrence,
            EventCode,
            EventDetailCode,
            Message,
            ApplicationPath,
            ApplicationVirtualPath,
            MachineName,
            RequestUrl,
            ExceptionType,
            Details
        )
    VALUES
    (
        @EventId,
        @EventTimeUtc,
        @EventTime,
        @EventType,
        @EventSequence,
        @EventOccurrence,
        @EventCode,
        @EventDetailCode,
        @Message,
        @ApplicationPath,
        @ApplicationVirtualPath,
        @MachineName,
        @RequestUrl,
        @ExceptionType,
        @Details
    )
END
GO
/****** Object:  Table [dbo].[aspnet_Users]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_Users](
	[ApplicationId] [uniqueidentifier] NOT NULL,
	[UserId] [uniqueidentifier] NOT NULL,
	[UserName] [nvarchar](256) NOT NULL,
	[LoweredUserName] [nvarchar](256) NOT NULL,
	[MobileAlias] [nvarchar](16) NULL,
	[IsAnonymous] [bit] NOT NULL,
	[LastActivityDate] [datetime] NOT NULL,
PRIMARY KEY NONCLUSTERED 
(
	[UserId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].[aspnet_Users] ([ApplicationId], [UserId], [UserName], [LoweredUserName], [MobileAlias], [IsAnonymous], [LastActivityDate]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'94cc4e1f-4173-41f1-aafd-ba79a7bd94c4', N'admin', N'admin', NULL, 0, CAST(0x0000A28F0031557F AS DateTime))
INSERT [dbo].[aspnet_Users] ([ApplicationId], [UserId], [UserName], [LoweredUserName], [MobileAlias], [IsAnonymous], [LastActivityDate]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'79232639-18cf-46c0-9849-13a39740799f', N'viewer', N'viewer', NULL, 0, CAST(0x0000A2540012CC38 AS DateTime))
INSERT [dbo].[aspnet_Users] ([ApplicationId], [UserId], [UserName], [LoweredUserName], [MobileAlias], [IsAnonymous], [LastActivityDate]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'bcc2c742-616f-4622-ab47-785eb59c120c', N'manager', N'manager', NULL, 0, CAST(0x0000A1D500DB7E8A AS DateTime))
INSERT [dbo].[aspnet_Users] ([ApplicationId], [UserId], [UserName], [LoweredUserName], [MobileAlias], [IsAnonymous], [LastActivityDate]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', N'ncicj', N'ncicj', NULL, 0, CAST(0x0000A28F0032F201 AS DateTime))
INSERT [dbo].[aspnet_Users] ([ApplicationId], [UserId], [UserName], [LoweredUserName], [MobileAlias], [IsAnonymous], [LastActivityDate]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'cc04c7f7-94a1-4d51-9044-53ac36b7e9ca', N'ntrhyc', N'ntrhyc', NULL, 0, CAST(0x0000A2530082D304 AS DateTime))
INSERT [dbo].[aspnet_Users] ([ApplicationId], [UserId], [UserName], [LoweredUserName], [MobileAlias], [IsAnonymous], [LastActivityDate]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'41063b94-2e3c-4112-a0d3-1d85b9075a02', N'ntrgsa', N'ntrgsa', NULL, 0, CAST(0x0000A2530097818C AS DateTime))
INSERT [dbo].[aspnet_Users] ([ApplicationId], [UserId], [UserName], [LoweredUserName], [MobileAlias], [IsAnonymous], [LastActivityDate]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'eec29dbe-8c77-48f0-81ad-8c44f2bff946', N'albert', N'albert', NULL, 0, CAST(0x0000A28F00331878 AS DateTime))
/****** Object:  StoredProcedure [dbo].[aspnet_UnRegisterSchemaVersion]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_UnRegisterSchemaVersion]
    @Feature                   nvarchar(128),
    @CompatibleSchemaVersion   nvarchar(128)
AS
BEGIN
    DELETE FROM dbo.aspnet_SchemaVersions
        WHERE   Feature = LOWER(@Feature) AND @CompatibleSchemaVersion = CompatibleSchemaVersion
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_CheckSchemaVersion]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_CheckSchemaVersion]
    @Feature                   nvarchar(128),
    @CompatibleSchemaVersion   nvarchar(128)
AS
BEGIN
    IF (EXISTS( SELECT  *
                FROM    dbo.aspnet_SchemaVersions
                WHERE   Feature = LOWER( @Feature ) AND
                        CompatibleSchemaVersion = @CompatibleSchemaVersion ))
        RETURN 0

    RETURN 1
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Applications_CreateApplication]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Applications_CreateApplication]
    @ApplicationName      nvarchar(256),
    @ApplicationId        uniqueidentifier OUTPUT
AS
BEGIN
    SELECT  @ApplicationId = ApplicationId FROM dbo.aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName

    IF(@ApplicationId IS NULL)
    BEGIN
        DECLARE @TranStarted   bit
        SET @TranStarted = 0

        IF( @@TRANCOUNT = 0 )
        BEGIN
	        BEGIN TRANSACTION
	        SET @TranStarted = 1
        END
        ELSE
    	    SET @TranStarted = 0

        SELECT  @ApplicationId = ApplicationId
        FROM dbo.aspnet_Applications WITH (UPDLOCK, HOLDLOCK)
        WHERE LOWER(@ApplicationName) = LoweredApplicationName

        IF(@ApplicationId IS NULL)
        BEGIN
            SELECT  @ApplicationId = NEWID()
            INSERT  dbo.aspnet_Applications (ApplicationId, ApplicationName, LoweredApplicationName)
            VALUES  (@ApplicationId, @ApplicationName, LOWER(@ApplicationName))
        END


        IF( @TranStarted = 1 )
        BEGIN
            IF(@@ERROR = 0)
            BEGIN
	        SET @TranStarted = 0
	        COMMIT TRANSACTION
            END
            ELSE
            BEGIN
                SET @TranStarted = 0
                ROLLBACK TRANSACTION
            END
        END
    END
END
GO
/****** Object:  Table [dbo].[aspnet_Paths]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_Paths](
	[ApplicationId] [uniqueidentifier] NOT NULL,
	[PathId] [uniqueidentifier] NOT NULL,
	[Path] [nvarchar](256) NOT NULL,
	[LoweredPath] [nvarchar](256) NOT NULL,
PRIMARY KEY NONCLUSTERED 
(
	[PathId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Personalization_GetApplicationId]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Personalization_GetApplicationId] (
    @ApplicationName NVARCHAR(256),
    @ApplicationId UNIQUEIDENTIFIER OUT)
AS
BEGIN
    SELECT @ApplicationId = ApplicationId FROM dbo.aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
END
GO
/****** Object:  Table [dbo].[aspnet_Roles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_Roles](
	[ApplicationId] [uniqueidentifier] NOT NULL,
	[RoleId] [uniqueidentifier] NOT NULL,
	[RoleName] [nvarchar](256) NOT NULL,
	[LoweredRoleName] [nvarchar](256) NOT NULL,
	[Description] [nvarchar](256) NULL,
PRIMARY KEY NONCLUSTERED 
(
	[RoleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].[aspnet_Roles] ([ApplicationId], [RoleId], [RoleName], [LoweredRoleName], [Description]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'c925ce53-2523-4081-b90b-ec34d2e7119a', N'Administrator', N'administrator', NULL)
INSERT [dbo].[aspnet_Roles] ([ApplicationId], [RoleId], [RoleName], [LoweredRoleName], [Description]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'bc8f226e-11e8-4c1b-9411-e6a63f2d3f88', N'Data Manager', N'data manager', NULL)
INSERT [dbo].[aspnet_Roles] ([ApplicationId], [RoleId], [RoleName], [LoweredRoleName], [Description]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'9d52461e-42a2-45bb-b250-e930a13cb816', N'Data Viewer', N'data viewer', NULL)
/****** Object:  StoredProcedure [dbo].[aspnet_RegisterSchemaVersion]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_RegisterSchemaVersion]
    @Feature                   nvarchar(128),
    @CompatibleSchemaVersion   nvarchar(128),
    @IsCurrentVersion          bit,
    @RemoveIncompatibleSchema  bit
AS
BEGIN
    IF( @RemoveIncompatibleSchema = 1 )
    BEGIN
        DELETE FROM dbo.aspnet_SchemaVersions WHERE Feature = LOWER( @Feature )
    END
    ELSE
    BEGIN
        IF( @IsCurrentVersion = 1 )
        BEGIN
            UPDATE dbo.aspnet_SchemaVersions
            SET IsCurrentVersion = 0
            WHERE Feature = LOWER( @Feature )
        END
    END

    INSERT  dbo.aspnet_SchemaVersions( Feature, CompatibleSchemaVersion, IsCurrentVersion )
    VALUES( LOWER( @Feature ), @CompatibleSchemaVersion, @IsCurrentVersion )
END
GO
/****** Object:  Table [dbo].[aspnet_PersonalizationPerUser]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_PersonalizationPerUser](
	[Id] [uniqueidentifier] NOT NULL,
	[PathId] [uniqueidentifier] NULL,
	[UserId] [uniqueidentifier] NULL,
	[PageSettings] [image] NOT NULL,
	[LastUpdatedDate] [datetime] NOT NULL,
PRIMARY KEY NONCLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[aspnet_Profile]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_Profile](
	[UserId] [uniqueidentifier] NOT NULL,
	[PropertyNames] [ntext] NOT NULL,
	[PropertyValuesString] [ntext] NOT NULL,
	[PropertyValuesBinary] [image] NOT NULL,
	[LastUpdatedDate] [datetime] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[UserId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[aspnet_Membership]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_Membership](
	[ApplicationId] [uniqueidentifier] NOT NULL,
	[UserId] [uniqueidentifier] NOT NULL,
	[Password] [nvarchar](128) NOT NULL,
	[PasswordFormat] [int] NOT NULL,
	[PasswordSalt] [nvarchar](128) NOT NULL,
	[MobilePIN] [nvarchar](16) NULL,
	[Email] [nvarchar](256) NULL,
	[LoweredEmail] [nvarchar](256) NULL,
	[PasswordQuestion] [nvarchar](256) NULL,
	[PasswordAnswer] [nvarchar](128) NULL,
	[IsApproved] [bit] NOT NULL,
	[IsLockedOut] [bit] NOT NULL,
	[CreateDate] [datetime] NOT NULL,
	[LastLoginDate] [datetime] NOT NULL,
	[LastPasswordChangedDate] [datetime] NOT NULL,
	[LastLockoutDate] [datetime] NOT NULL,
	[FailedPasswordAttemptCount] [int] NOT NULL,
	[FailedPasswordAttemptWindowStart] [datetime] NOT NULL,
	[FailedPasswordAnswerAttemptCount] [int] NOT NULL,
	[FailedPasswordAnswerAttemptWindowStart] [datetime] NOT NULL,
	[Comment] [ntext] NULL,
PRIMARY KEY NONCLUSTERED 
(
	[UserId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
INSERT [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'94cc4e1f-4173-41f1-aafd-ba79a7bd94c4', N'FAxwClh7s7HoxkT9CEanx/F3mzg=', 1, N'UXdgBnXYz9nILddZx2SlyQ==', NULL, N'administrator@gmail.com', N'administrator@gmail.com', NULL, NULL, 1, 0, CAST(0x0000A182005EC8D8 AS DateTime), CAST(0x0000A28F0031557F AS DateTime), CAST(0x0000A18F003593B1 AS DateTime), CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), NULL)
INSERT [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'79232639-18cf-46c0-9849-13a39740799f', N'MSGqntDxszeM+W72jEZ2RMrKQWA=', 1, N'yJbljRj6PwxmPwb26eVSNQ==', NULL, N'viewer@gmail.com', N'viewer@gmail.com', N'-', N'Z+ovcfDu93O8yRrhpqQz5PKCCyc=', 1, 0, CAST(0x0000A18D00CF8F28 AS DateTime), CAST(0x0000A2540012CC38 AS DateTime), CAST(0x0000A18D00CF8F28 AS DateTime), CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), NULL)
INSERT [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'bcc2c742-616f-4622-ab47-785eb59c120c', N'ZZqRFVVf1rzK8OyIQBxYaZdPVdY=', 1, N'yFKmvFFM8eJPOumMkwKhkA==', NULL, N'manager@gmail.com', N'manager@gmail.com', NULL, NULL, 1, 0, CAST(0x0000A18F00487DD0 AS DateTime), CAST(0x0000A1D500DB7E8A AS DateTime), CAST(0x0000A18F00487DD0 AS DateTime), CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), NULL)
INSERT [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', N'CFROOuetX9IHqIsifNSkEWvNqXI=', 1, N'Ew4C1yytoPCfeVy8ycfs2w==', NULL, N'john.chen@nccs.com.sg', N'john.chen@nccs.com.sg', NULL, NULL, 1, 0, CAST(0x0000A253008272EC AS DateTime), CAST(0x0000A28F0032F201 AS DateTime), CAST(0x0000A253008272EC AS DateTime), CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), NULL)
INSERT [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'cc04c7f7-94a1-4d51-9044-53ac36b7e9ca', N'/4EBcv3JgE1tnwwyIvAUzN1+iQ0=', 1, N'z/kZqcSof+pAEGh6n5Pjpw==', NULL, N'ntrhyc@nccs.com.sg', N'ntrhyc@nccs.com.sg', NULL, NULL, 1, 0, CAST(0x0000A2530082D304 AS DateTime), CAST(0x0000A2530082D304 AS DateTime), CAST(0x0000A2530082D304 AS DateTime), CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), NULL)
INSERT [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'41063b94-2e3c-4112-a0d3-1d85b9075a02', N'jMIcjzUp5eTHIrc2aBdlS43SodA=', 1, N'dGiw4VBMDS8YWc0Ee7OAnQ==', NULL, N'ntrgsa@nccs.com.sg', N'ntrgsa@nccs.com.sg', NULL, NULL, 1, 0, CAST(0x0000A2530097818C AS DateTime), CAST(0x0000A2530097818C AS DateTime), CAST(0x0000A2530097818C AS DateTime), CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), NULL)
INSERT [dbo].[aspnet_Membership] ([ApplicationId], [UserId], [Password], [PasswordFormat], [PasswordSalt], [MobilePIN], [Email], [LoweredEmail], [PasswordQuestion], [PasswordAnswer], [IsApproved], [IsLockedOut], [CreateDate], [LastLoginDate], [LastPasswordChangedDate], [LastLockoutDate], [FailedPasswordAttemptCount], [FailedPasswordAttemptWindowStart], [FailedPasswordAnswerAttemptCount], [FailedPasswordAnswerAttemptWindowStart], [Comment]) VALUES (N'43d3f17a-62a2-480f-a11c-bd6739db8ffa', N'eec29dbe-8c77-48f0-81ad-8c44f2bff946', N'NNXsKBBnWbDVNTPC8oF4JwveYPM=', 1, N'7VGdBhogJ4/NCRf3sWVJ4w==', NULL, N'dd@gmail.com', N'dd@gmail.com', NULL, NULL, 1, 0, CAST(0x0000A28F00331878 AS DateTime), CAST(0x0000A28F00331878 AS DateTime), CAST(0x0000A28F00331878 AS DateTime), CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), 0, CAST(0xFFFF2FB300000000 AS DateTime), NULL)
/****** Object:  StoredProcedure [dbo].[aspnet_Paths_CreatePath]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Paths_CreatePath]
    @ApplicationId UNIQUEIDENTIFIER,
    @Path           NVARCHAR(256),
    @PathId         UNIQUEIDENTIFIER OUTPUT
AS
BEGIN
    BEGIN TRANSACTION
    IF (NOT EXISTS(SELECT * FROM dbo.aspnet_Paths WHERE LoweredPath = LOWER(@Path) AND ApplicationId = @ApplicationId))
    BEGIN
        INSERT dbo.aspnet_Paths (ApplicationId, Path, LoweredPath) VALUES (@ApplicationId, @Path, LOWER(@Path))
    END
    COMMIT TRANSACTION
    SELECT @PathId = PathId FROM dbo.aspnet_Paths WHERE LOWER(@Path) = LoweredPath AND ApplicationId = @ApplicationId
END
GO
/****** Object:  Table [dbo].[aspnet_PersonalizationAllUsers]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_PersonalizationAllUsers](
	[PathId] [uniqueidentifier] NOT NULL,
	[PageSettings] [image] NOT NULL,
	[LastUpdatedDate] [datetime] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[PathId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Users_CreateUser]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Users_CreateUser]
    @ApplicationId    uniqueidentifier,
    @UserName         nvarchar(256),
    @IsUserAnonymous  bit,
    @LastActivityDate DATETIME,
    @UserId           uniqueidentifier OUTPUT
AS
BEGIN
    IF( @UserId IS NULL )
        SELECT @UserId = NEWID()
    ELSE
    BEGIN
        IF( EXISTS( SELECT UserId FROM dbo.aspnet_Users
                    WHERE @UserId = UserId ) )
            RETURN -1
    END

    INSERT dbo.aspnet_Users (ApplicationId, UserId, UserName, LoweredUserName, IsAnonymous, LastActivityDate)
    VALUES (@ApplicationId, @UserId, @UserName, LOWER(@UserName), @IsUserAnonymous, @LastActivityDate)

    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Roles_RoleExists]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Roles_RoleExists]
    @ApplicationName  nvarchar(256),
    @RoleName         nvarchar(256)
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN(0)
    IF (EXISTS (SELECT RoleName FROM dbo.aspnet_Roles WHERE LOWER(@RoleName) = LoweredRoleName AND ApplicationId = @ApplicationId ))
        RETURN(1)
    ELSE
        RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Roles_GetAllRoles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Roles_GetAllRoles] (
    @ApplicationName           nvarchar(256))
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN
    SELECT RoleName
    FROM   dbo.aspnet_Roles WHERE ApplicationId = @ApplicationId
    ORDER BY RoleName
END
GO
/****** Object:  Table [dbo].[aspnet_UsersInRoles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aspnet_UsersInRoles](
	[UserId] [uniqueidentifier] NOT NULL,
	[RoleId] [uniqueidentifier] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[UserId] ASC,
	[RoleId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [dbo].[aspnet_UsersInRoles] ([UserId], [RoleId]) VALUES (N'79232639-18cf-46c0-9849-13a39740799f', N'9d52461e-42a2-45bb-b250-e930a13cb816')
INSERT [dbo].[aspnet_UsersInRoles] ([UserId], [RoleId]) VALUES (N'41063b94-2e3c-4112-a0d3-1d85b9075a02', N'9d52461e-42a2-45bb-b250-e930a13cb816')
INSERT [dbo].[aspnet_UsersInRoles] ([UserId], [RoleId]) VALUES (N'cc04c7f7-94a1-4d51-9044-53ac36b7e9ca', N'9d52461e-42a2-45bb-b250-e930a13cb816')
INSERT [dbo].[aspnet_UsersInRoles] ([UserId], [RoleId]) VALUES (N'4f5c8464-1a91-4177-8e25-647c51e6b0f0', N'c925ce53-2523-4081-b90b-ec34d2e7119a')
INSERT [dbo].[aspnet_UsersInRoles] ([UserId], [RoleId]) VALUES (N'bcc2c742-616f-4622-ab47-785eb59c120c', N'bc8f226e-11e8-4c1b-9411-e6a63f2d3f88')
INSERT [dbo].[aspnet_UsersInRoles] ([UserId], [RoleId]) VALUES (N'eec29dbe-8c77-48f0-81ad-8c44f2bff946', N'c925ce53-2523-4081-b90b-ec34d2e7119a')
INSERT [dbo].[aspnet_UsersInRoles] ([UserId], [RoleId]) VALUES (N'94cc4e1f-4173-41f1-aafd-ba79a7bd94c4', N'c925ce53-2523-4081-b90b-ec34d2e7119a')
/****** Object:  View [dbo].[metaDisplayView]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[metaDisplayView]
AS
SELECT DISTINCT 
                      dbo.MetadataTables.TableId, dbo.MetadataTables.TableName, dbo.MetadataTables.TableDescription, dbo.MetadataTables.fileName, dbo.MetadataTables.isRpt, 
                      MAX(CASE WHEN TableAttributeName LIKE 'dataSource' THEN TableAttributeValue ELSE NULL END) AS dataSource, 
                      MAX(CASE WHEN TableAttributeName LIKE 'dataType' THEN TableAttributeValue ELSE NULL END) AS dataType, 
                      MAX(CASE WHEN TableAttributeName LIKE 'data_filter1' THEN TableAttributeValue ELSE NULL END) AS data_filter1, dbo.MetadataTables.status, 
                      dbo.MetadataTables.updatedOn
FROM         dbo.MetadataTables INNER JOIN
                      dbo.MetadataTableAttributeValues ON dbo.MetadataTableAttributeValues.TableId = dbo.MetadataTables.TableId INNER JOIN
                      dbo.MetadataTableAttributes ON dbo.MetadataTableAttributeValues.TableAttributeId = dbo.MetadataTableAttributes.TableAttributeId
WHERE     (dbo.MetadataTables.status LIKE 'Active%') AND (dbo.MetadataTables.categories = 'rpt')
GROUP BY dbo.MetadataTables.TableId, dbo.MetadataTables.TableName, dbo.MetadataTables.TableDescription, dbo.MetadataTables.fileName, dbo.MetadataTables.status, 
                      dbo.MetadataTables.updatedOn, dbo.MetadataTables.isRpt
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "MetadataTableAttributeValues"
            Begin Extent = 
               Top = 6
               Left = 260
               Bottom = 125
               Right = 470
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MetadataTableAttributes"
            Begin Extent = 
               Top = 126
               Left = 38
               Bottom = 230
               Right = 265
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MetadataTables"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 125
               Right = 222
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 11
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 12
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'metaDisplayView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'metaDisplayView'
GO
/****** Object:  View [dbo].[metaDisplay_fastFact]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[metaDisplay_fastFact]
AS
SELECT DISTINCT 
                      dbo.MetadataTables.TableId, dbo.MetadataTables.TableName, dbo.MetadataTables.TableDescription, dbo.MetadataTables.fileName, dbo.MetadataTables.isRpt, 
                      MAX(CASE WHEN TableAttributeName LIKE 'CancerSite' THEN TableAttributeValue ELSE NULL END) AS CancerSite, 
                      MAX(CASE WHEN TableAttributeName LIKE 'statsType' THEN TableAttributeValue ELSE NULL END) AS statsType, dbo.MetadataTables.status, 
                      dbo.MetadataTables.updatedOn
FROM         dbo.MetadataTables INNER JOIN
                      dbo.MetadataTableAttributeValues ON dbo.MetadataTableAttributeValues.TableId = dbo.MetadataTables.TableId INNER JOIN
                      dbo.MetadataTableAttributes ON dbo.MetadataTableAttributeValues.TableAttributeId = dbo.MetadataTableAttributes.TableAttributeId
WHERE     (dbo.MetadataTables.status LIKE 'Active%') AND (dbo.MetadataTables.categories = 'fact')
GROUP BY dbo.MetadataTables.TableId, dbo.MetadataTables.TableName, dbo.MetadataTables.TableDescription, dbo.MetadataTables.fileName, dbo.MetadataTables.status, 
                      dbo.MetadataTables.updatedOn, dbo.MetadataTables.isRpt
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "MetadataTableAttributeValues"
            Begin Extent = 
               Top = 6
               Left = 260
               Bottom = 125
               Right = 470
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MetadataTableAttributes"
            Begin Extent = 
               Top = 6
               Left = 508
               Bottom = 110
               Right = 735
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "MetadataTables"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 125
               Right = 222
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 10
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 12
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'metaDisplay_fastFact'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'metaDisplay_fastFact'
GO
/****** Object:  View [dbo].[vw_aspnet_Users]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_Users]
  AS SELECT [dbo].[aspnet_Users].[ApplicationId], [dbo].[aspnet_Users].[UserId], [dbo].[aspnet_Users].[UserName], [dbo].[aspnet_Users].[LoweredUserName], [dbo].[aspnet_Users].[MobileAlias], [dbo].[aspnet_Users].[IsAnonymous], [dbo].[aspnet_Users].[LastActivityDate]
  FROM [dbo].[aspnet_Users]
GO
/****** Object:  View [dbo].[vw_aspnet_Roles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_Roles]
  AS SELECT [dbo].[aspnet_Roles].[ApplicationId], [dbo].[aspnet_Roles].[RoleId], [dbo].[aspnet_Roles].[RoleName], [dbo].[aspnet_Roles].[LoweredRoleName], [dbo].[aspnet_Roles].[Description]
  FROM [dbo].[aspnet_Roles]
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Roles_CreateRole]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Roles_CreateRole]
    @ApplicationName  nvarchar(256),
    @RoleName         nvarchar(256)
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL

    DECLARE @ErrorCode     int
    SET @ErrorCode = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
        BEGIN TRANSACTION
        SET @TranStarted = 1
    END
    ELSE
        SET @TranStarted = 0

    EXEC dbo.aspnet_Applications_CreateApplication @ApplicationName, @ApplicationId OUTPUT

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF (EXISTS(SELECT RoleId FROM dbo.aspnet_Roles WHERE LoweredRoleName = LOWER(@RoleName) AND ApplicationId = @ApplicationId))
    BEGIN
        SET @ErrorCode = 1
        GOTO Cleanup
    END

    INSERT INTO dbo.aspnet_Roles
                (ApplicationId, RoleName, LoweredRoleName)
         VALUES (@ApplicationId, @RoleName, LOWER(@RoleName))

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
        COMMIT TRANSACTION
    END

    RETURN(0)

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
        ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode

END
GO
/****** Object:  View [dbo].[vw_aspnet_WebPartState_Paths]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_WebPartState_Paths]
  AS SELECT [dbo].[aspnet_Paths].[ApplicationId], [dbo].[aspnet_Paths].[PathId], [dbo].[aspnet_Paths].[Path], [dbo].[aspnet_Paths].[LoweredPath]
  FROM [dbo].[aspnet_Paths]
GO
/****** Object:  View [dbo].[vw_aspnet_WebPartState_User]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_WebPartState_User]
  AS SELECT [dbo].[aspnet_PersonalizationPerUser].[PathId], [dbo].[aspnet_PersonalizationPerUser].[UserId], [DataSize]=DATALENGTH([dbo].[aspnet_PersonalizationPerUser].[PageSettings]), [dbo].[aspnet_PersonalizationPerUser].[LastUpdatedDate]
  FROM [dbo].[aspnet_PersonalizationPerUser]
GO
/****** Object:  View [dbo].[vw_aspnet_WebPartState_Shared]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_WebPartState_Shared]
  AS SELECT [dbo].[aspnet_PersonalizationAllUsers].[PathId], [DataSize]=DATALENGTH([dbo].[aspnet_PersonalizationAllUsers].[PageSettings]), [dbo].[aspnet_PersonalizationAllUsers].[LastUpdatedDate]
  FROM [dbo].[aspnet_PersonalizationAllUsers]
GO
/****** Object:  View [dbo].[vw_aspnet_UsersInRoles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_UsersInRoles]
  AS SELECT [dbo].[aspnet_UsersInRoles].[UserId], [dbo].[aspnet_UsersInRoles].[RoleId]
  FROM [dbo].[aspnet_UsersInRoles]
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Profile_DeleteInactiveProfiles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Profile_DeleteInactiveProfiles]
    @ApplicationName        nvarchar(256),
    @ProfileAuthOptions     int,
    @InactiveSinceDate      datetime
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
    BEGIN
        SELECT  0
        RETURN
    END

    DELETE
    FROM    dbo.aspnet_Profile
    WHERE   UserId IN
            (   SELECT  UserId
                FROM    dbo.aspnet_Users u
                WHERE   ApplicationId = @ApplicationId
                        AND (LastActivityDate <= @InactiveSinceDate)
                        AND (
                                (@ProfileAuthOptions = 2)
                             OR (@ProfileAuthOptions = 0 AND IsAnonymous = 1)
                             OR (@ProfileAuthOptions = 1 AND IsAnonymous = 0)
                            )
            )

    SELECT  @@ROWCOUNT
END
GO
/****** Object:  View [dbo].[vw_aspnet_Profiles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_Profiles]
  AS SELECT [dbo].[aspnet_Profile].[UserId], [dbo].[aspnet_Profile].[LastUpdatedDate],
      [DataSize]=  DATALENGTH([dbo].[aspnet_Profile].[PropertyNames])
                 + DATALENGTH([dbo].[aspnet_Profile].[PropertyValuesString])
                 + DATALENGTH([dbo].[aspnet_Profile].[PropertyValuesBinary])
  FROM [dbo].[aspnet_Profile]
GO
/****** Object:  View [dbo].[vw_aspnet_MembershipUsers]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE VIEW [dbo].[vw_aspnet_MembershipUsers]
  AS SELECT [dbo].[aspnet_Membership].[UserId],
            [dbo].[aspnet_Membership].[PasswordFormat],
            [dbo].[aspnet_Membership].[MobilePIN],
            [dbo].[aspnet_Membership].[Email],
            [dbo].[aspnet_Membership].[LoweredEmail],
            [dbo].[aspnet_Membership].[PasswordQuestion],
            [dbo].[aspnet_Membership].[PasswordAnswer],
            [dbo].[aspnet_Membership].[IsApproved],
            [dbo].[aspnet_Membership].[IsLockedOut],
            [dbo].[aspnet_Membership].[CreateDate],
            [dbo].[aspnet_Membership].[LastLoginDate],
            [dbo].[aspnet_Membership].[LastPasswordChangedDate],
            [dbo].[aspnet_Membership].[LastLockoutDate],
            [dbo].[aspnet_Membership].[FailedPasswordAttemptCount],
            [dbo].[aspnet_Membership].[FailedPasswordAttemptWindowStart],
            [dbo].[aspnet_Membership].[FailedPasswordAnswerAttemptCount],
            [dbo].[aspnet_Membership].[FailedPasswordAnswerAttemptWindowStart],
            [dbo].[aspnet_Membership].[Comment],
            [dbo].[aspnet_Users].[ApplicationId],
            [dbo].[aspnet_Users].[UserName],
            [dbo].[aspnet_Users].[MobileAlias],
            [dbo].[aspnet_Users].[IsAnonymous],
            [dbo].[aspnet_Users].[LastActivityDate]
  FROM [dbo].[aspnet_Membership] INNER JOIN [dbo].[aspnet_Users]
      ON [dbo].[aspnet_Membership].[UserId] = [dbo].[aspnet_Users].[UserId]
GO
/****** Object:  StoredProcedure [dbo].[aspnet_UsersInRoles_RemoveUsersFromRoles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_UsersInRoles_RemoveUsersFromRoles]
	@ApplicationName  nvarchar(256),
	@UserNames		  nvarchar(4000),
	@RoleNames		  nvarchar(4000)
AS
BEGIN
	DECLARE @AppId uniqueidentifier
	SELECT  @AppId = NULL
	SELECT  @AppId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
	IF (@AppId IS NULL)
		RETURN(2)


	DECLARE @TranStarted   bit
	SET @TranStarted = 0

	IF( @@TRANCOUNT = 0 )
	BEGIN
		BEGIN TRANSACTION
		SET @TranStarted = 1
	END

	DECLARE @tbNames  table(Name nvarchar(256) NOT NULL PRIMARY KEY)
	DECLARE @tbRoles  table(RoleId uniqueidentifier NOT NULL PRIMARY KEY)
	DECLARE @tbUsers  table(UserId uniqueidentifier NOT NULL PRIMARY KEY)
	DECLARE @Num	  int
	DECLARE @Pos	  int
	DECLARE @NextPos  int
	DECLARE @Name	  nvarchar(256)
	DECLARE @CountAll int
	DECLARE @CountU	  int
	DECLARE @CountR	  int


	SET @Num = 0
	SET @Pos = 1
	WHILE(@Pos <= LEN(@RoleNames))
	BEGIN
		SELECT @NextPos = CHARINDEX(N',', @RoleNames,  @Pos)
		IF (@NextPos = 0 OR @NextPos IS NULL)
			SELECT @NextPos = LEN(@RoleNames) + 1
		SELECT @Name = RTRIM(LTRIM(SUBSTRING(@RoleNames, @Pos, @NextPos - @Pos)))
		SELECT @Pos = @NextPos+1

		INSERT INTO @tbNames VALUES (@Name)
		SET @Num = @Num + 1
	END

	INSERT INTO @tbRoles
	  SELECT RoleId
	  FROM   dbo.aspnet_Roles ar, @tbNames t
	  WHERE  LOWER(t.Name) = ar.LoweredRoleName AND ar.ApplicationId = @AppId
	SELECT @CountR = @@ROWCOUNT

	IF (@CountR <> @Num)
	BEGIN
		SELECT TOP 1 N'', Name
		FROM   @tbNames
		WHERE  LOWER(Name) NOT IN (SELECT ar.LoweredRoleName FROM dbo.aspnet_Roles ar,  @tbRoles r WHERE r.RoleId = ar.RoleId)
		IF( @TranStarted = 1 )
			ROLLBACK TRANSACTION
		RETURN(2)
	END


	DELETE FROM @tbNames WHERE 1=1
	SET @Num = 0
	SET @Pos = 1


	WHILE(@Pos <= LEN(@UserNames))
	BEGIN
		SELECT @NextPos = CHARINDEX(N',', @UserNames,  @Pos)
		IF (@NextPos = 0 OR @NextPos IS NULL)
			SELECT @NextPos = LEN(@UserNames) + 1
		SELECT @Name = RTRIM(LTRIM(SUBSTRING(@UserNames, @Pos, @NextPos - @Pos)))
		SELECT @Pos = @NextPos+1

		INSERT INTO @tbNames VALUES (@Name)
		SET @Num = @Num + 1
	END

	INSERT INTO @tbUsers
	  SELECT UserId
	  FROM   dbo.aspnet_Users ar, @tbNames t
	  WHERE  LOWER(t.Name) = ar.LoweredUserName AND ar.ApplicationId = @AppId

	SELECT @CountU = @@ROWCOUNT
	IF (@CountU <> @Num)
	BEGIN
		SELECT TOP 1 Name, N''
		FROM   @tbNames
		WHERE  LOWER(Name) NOT IN (SELECT au.LoweredUserName FROM dbo.aspnet_Users au,  @tbUsers u WHERE u.UserId = au.UserId)

		IF( @TranStarted = 1 )
			ROLLBACK TRANSACTION
		RETURN(1)
	END

	SELECT  @CountAll = COUNT(*)
	FROM	dbo.aspnet_UsersInRoles ur, @tbUsers u, @tbRoles r
	WHERE   ur.UserId = u.UserId AND ur.RoleId = r.RoleId

	IF (@CountAll <> @CountU * @CountR)
	BEGIN
		SELECT TOP 1 UserName, RoleName
		FROM		 @tbUsers tu, @tbRoles tr, dbo.aspnet_Users u, dbo.aspnet_Roles r
		WHERE		 u.UserId = tu.UserId AND r.RoleId = tr.RoleId AND
					 tu.UserId NOT IN (SELECT ur.UserId FROM dbo.aspnet_UsersInRoles ur WHERE ur.RoleId = tr.RoleId) AND
					 tr.RoleId NOT IN (SELECT ur.RoleId FROM dbo.aspnet_UsersInRoles ur WHERE ur.UserId = tu.UserId)
		IF( @TranStarted = 1 )
			ROLLBACK TRANSACTION
		RETURN(3)
	END

	DELETE FROM dbo.aspnet_UsersInRoles
	WHERE UserId IN (SELECT UserId FROM @tbUsers)
	  AND RoleId IN (SELECT RoleId FROM @tbRoles)
	IF( @TranStarted = 1 )
		COMMIT TRANSACTION
	RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_UsersInRoles_IsUserInRole]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_UsersInRoles_IsUserInRole]
    @ApplicationName  nvarchar(256),
    @UserName         nvarchar(256),
    @RoleName         nvarchar(256)
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN(2)
    DECLARE @UserId uniqueidentifier
    SELECT  @UserId = NULL
    DECLARE @RoleId uniqueidentifier
    SELECT  @RoleId = NULL

    SELECT  @UserId = UserId
    FROM    dbo.aspnet_Users
    WHERE   LoweredUserName = LOWER(@UserName) AND ApplicationId = @ApplicationId

    IF (@UserId IS NULL)
        RETURN(2)

    SELECT  @RoleId = RoleId
    FROM    dbo.aspnet_Roles
    WHERE   LoweredRoleName = LOWER(@RoleName) AND ApplicationId = @ApplicationId

    IF (@RoleId IS NULL)
        RETURN(3)

    IF (EXISTS( SELECT * FROM dbo.aspnet_UsersInRoles WHERE  UserId = @UserId AND RoleId = @RoleId))
        RETURN(1)
    ELSE
        RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_UsersInRoles_GetUsersInRoles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_UsersInRoles_GetUsersInRoles]
    @ApplicationName  nvarchar(256),
    @RoleName         nvarchar(256)
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN(1)
     DECLARE @RoleId uniqueidentifier
     SELECT  @RoleId = NULL

     SELECT  @RoleId = RoleId
     FROM    dbo.aspnet_Roles
     WHERE   LOWER(@RoleName) = LoweredRoleName AND ApplicationId = @ApplicationId

     IF (@RoleId IS NULL)
         RETURN(1)

    SELECT u.UserName
    FROM   dbo.aspnet_Users u, dbo.aspnet_UsersInRoles ur
    WHERE  u.UserId = ur.UserId AND @RoleId = ur.RoleId AND u.ApplicationId = @ApplicationId
    ORDER BY u.UserName
    RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_UsersInRoles_GetRolesForUser]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_UsersInRoles_GetRolesForUser]
    @ApplicationName  nvarchar(256),
    @UserName         nvarchar(256)
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN(1)
    DECLARE @UserId uniqueidentifier
    SELECT  @UserId = NULL

    SELECT  @UserId = UserId
    FROM    dbo.aspnet_Users
    WHERE   LoweredUserName = LOWER(@UserName) AND ApplicationId = @ApplicationId

    IF (@UserId IS NULL)
        RETURN(1)

    SELECT r.RoleName
    FROM   dbo.aspnet_Roles r, dbo.aspnet_UsersInRoles ur
    WHERE  r.RoleId = ur.RoleId AND r.ApplicationId = @ApplicationId AND ur.UserId = @UserId
    ORDER BY r.RoleName
    RETURN (0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_UsersInRoles_FindUsersInRole]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_UsersInRoles_FindUsersInRole]
    @ApplicationName  nvarchar(256),
    @RoleName         nvarchar(256),
    @UserNameToMatch  nvarchar(256)
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN(1)
     DECLARE @RoleId uniqueidentifier
     SELECT  @RoleId = NULL

     SELECT  @RoleId = RoleId
     FROM    dbo.aspnet_Roles
     WHERE   LOWER(@RoleName) = LoweredRoleName AND ApplicationId = @ApplicationId

     IF (@RoleId IS NULL)
         RETURN(1)

    SELECT u.UserName
    FROM   dbo.aspnet_Users u, dbo.aspnet_UsersInRoles ur
    WHERE  u.UserId = ur.UserId AND @RoleId = ur.RoleId AND u.ApplicationId = @ApplicationId AND LoweredUserName LIKE LOWER(@UserNameToMatch)
    ORDER BY u.UserName
    RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_UsersInRoles_AddUsersToRoles]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_UsersInRoles_AddUsersToRoles]
	@ApplicationName  nvarchar(256),
	@UserNames		  nvarchar(4000),
	@RoleNames		  nvarchar(4000),
	@CurrentTimeUtc   datetime
AS
BEGIN
	DECLARE @AppId uniqueidentifier
	SELECT  @AppId = NULL
	SELECT  @AppId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
	IF (@AppId IS NULL)
		RETURN(2)
	DECLARE @TranStarted   bit
	SET @TranStarted = 0

	IF( @@TRANCOUNT = 0 )
	BEGIN
		BEGIN TRANSACTION
		SET @TranStarted = 1
	END

	DECLARE @tbNames	table(Name nvarchar(256) NOT NULL PRIMARY KEY)
	DECLARE @tbRoles	table(RoleId uniqueidentifier NOT NULL PRIMARY KEY)
	DECLARE @tbUsers	table(UserId uniqueidentifier NOT NULL PRIMARY KEY)
	DECLARE @Num		int
	DECLARE @Pos		int
	DECLARE @NextPos	int
	DECLARE @Name		nvarchar(256)

	SET @Num = 0
	SET @Pos = 1
	WHILE(@Pos <= LEN(@RoleNames))
	BEGIN
		SELECT @NextPos = CHARINDEX(N',', @RoleNames,  @Pos)
		IF (@NextPos = 0 OR @NextPos IS NULL)
			SELECT @NextPos = LEN(@RoleNames) + 1
		SELECT @Name = RTRIM(LTRIM(SUBSTRING(@RoleNames, @Pos, @NextPos - @Pos)))
		SELECT @Pos = @NextPos+1

		INSERT INTO @tbNames VALUES (@Name)
		SET @Num = @Num + 1
	END

	INSERT INTO @tbRoles
	  SELECT RoleId
	  FROM   dbo.aspnet_Roles ar, @tbNames t
	  WHERE  LOWER(t.Name) = ar.LoweredRoleName AND ar.ApplicationId = @AppId

	IF (@@ROWCOUNT <> @Num)
	BEGIN
		SELECT TOP 1 Name
		FROM   @tbNames
		WHERE  LOWER(Name) NOT IN (SELECT ar.LoweredRoleName FROM dbo.aspnet_Roles ar,  @tbRoles r WHERE r.RoleId = ar.RoleId)
		IF( @TranStarted = 1 )
			ROLLBACK TRANSACTION
		RETURN(2)
	END

	DELETE FROM @tbNames WHERE 1=1
	SET @Num = 0
	SET @Pos = 1

	WHILE(@Pos <= LEN(@UserNames))
	BEGIN
		SELECT @NextPos = CHARINDEX(N',', @UserNames,  @Pos)
		IF (@NextPos = 0 OR @NextPos IS NULL)
			SELECT @NextPos = LEN(@UserNames) + 1
		SELECT @Name = RTRIM(LTRIM(SUBSTRING(@UserNames, @Pos, @NextPos - @Pos)))
		SELECT @Pos = @NextPos+1

		INSERT INTO @tbNames VALUES (@Name)
		SET @Num = @Num + 1
	END

	INSERT INTO @tbUsers
	  SELECT UserId
	  FROM   dbo.aspnet_Users ar, @tbNames t
	  WHERE  LOWER(t.Name) = ar.LoweredUserName AND ar.ApplicationId = @AppId

	IF (@@ROWCOUNT <> @Num)
	BEGIN
		DELETE FROM @tbNames
		WHERE LOWER(Name) IN (SELECT LoweredUserName FROM dbo.aspnet_Users au,  @tbUsers u WHERE au.UserId = u.UserId)

		INSERT dbo.aspnet_Users (ApplicationId, UserId, UserName, LoweredUserName, IsAnonymous, LastActivityDate)
		  SELECT @AppId, NEWID(), Name, LOWER(Name), 0, @CurrentTimeUtc
		  FROM   @tbNames

		INSERT INTO @tbUsers
		  SELECT  UserId
		  FROM	dbo.aspnet_Users au, @tbNames t
		  WHERE   LOWER(t.Name) = au.LoweredUserName AND au.ApplicationId = @AppId
	END

	IF (EXISTS (SELECT * FROM dbo.aspnet_UsersInRoles ur, @tbUsers tu, @tbRoles tr WHERE tu.UserId = ur.UserId AND tr.RoleId = ur.RoleId))
	BEGIN
		SELECT TOP 1 UserName, RoleName
		FROM		 dbo.aspnet_UsersInRoles ur, @tbUsers tu, @tbRoles tr, aspnet_Users u, aspnet_Roles r
		WHERE		u.UserId = tu.UserId AND r.RoleId = tr.RoleId AND tu.UserId = ur.UserId AND tr.RoleId = ur.RoleId

		IF( @TranStarted = 1 )
			ROLLBACK TRANSACTION
		RETURN(3)
	END

	INSERT INTO dbo.aspnet_UsersInRoles (UserId, RoleId)
	SELECT UserId, RoleId
	FROM @tbUsers, @tbRoles

	IF( @TranStarted = 1 )
		COMMIT TRANSACTION
	RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Users_DeleteUser]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Users_DeleteUser]
    @ApplicationName  nvarchar(256),
    @UserName         nvarchar(256),
    @TablesToDeleteFrom int,
    @NumTablesDeletedFrom int OUTPUT
AS
BEGIN
    DECLARE @UserId               uniqueidentifier
    SELECT  @UserId               = NULL
    SELECT  @NumTablesDeletedFrom = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
	    BEGIN TRANSACTION
	    SET @TranStarted = 1
    END
    ELSE
	SET @TranStarted = 0

    DECLARE @ErrorCode   int
    DECLARE @RowCount    int

    SET @ErrorCode = 0
    SET @RowCount  = 0

    SELECT  @UserId = u.UserId
    FROM    dbo.aspnet_Users u, dbo.aspnet_Applications a
    WHERE   u.LoweredUserName       = LOWER(@UserName)
        AND u.ApplicationId         = a.ApplicationId
        AND LOWER(@ApplicationName) = a.LoweredApplicationName

    IF (@UserId IS NULL)
    BEGIN
        GOTO Cleanup
    END

    -- Delete from Membership table if (@TablesToDeleteFrom & 1) is set
    IF ((@TablesToDeleteFrom & 1) <> 0 AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_MembershipUsers') AND (type = 'V'))))
    BEGIN
        DELETE FROM dbo.aspnet_Membership WHERE @UserId = UserId

        SELECT @ErrorCode = @@ERROR,
               @RowCount = @@ROWCOUNT

        IF( @ErrorCode <> 0 )
            GOTO Cleanup

        IF (@RowCount <> 0)
            SELECT  @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END

    -- Delete from aspnet_UsersInRoles table if (@TablesToDeleteFrom & 2) is set
    IF ((@TablesToDeleteFrom & 2) <> 0  AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_UsersInRoles') AND (type = 'V'))) )
    BEGIN
        DELETE FROM dbo.aspnet_UsersInRoles WHERE @UserId = UserId

        SELECT @ErrorCode = @@ERROR,
                @RowCount = @@ROWCOUNT

        IF( @ErrorCode <> 0 )
            GOTO Cleanup

        IF (@RowCount <> 0)
            SELECT  @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END

    -- Delete from aspnet_Profile table if (@TablesToDeleteFrom & 4) is set
    IF ((@TablesToDeleteFrom & 4) <> 0  AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_Profiles') AND (type = 'V'))) )
    BEGIN
        DELETE FROM dbo.aspnet_Profile WHERE @UserId = UserId

        SELECT @ErrorCode = @@ERROR,
                @RowCount = @@ROWCOUNT

        IF( @ErrorCode <> 0 )
            GOTO Cleanup

        IF (@RowCount <> 0)
            SELECT  @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END

    -- Delete from aspnet_PersonalizationPerUser table if (@TablesToDeleteFrom & 8) is set
    IF ((@TablesToDeleteFrom & 8) <> 0  AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_WebPartState_User') AND (type = 'V'))) )
    BEGIN
        DELETE FROM dbo.aspnet_PersonalizationPerUser WHERE @UserId = UserId

        SELECT @ErrorCode = @@ERROR,
                @RowCount = @@ROWCOUNT

        IF( @ErrorCode <> 0 )
            GOTO Cleanup

        IF (@RowCount <> 0)
            SELECT  @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END

    -- Delete from aspnet_Users table if (@TablesToDeleteFrom & 1,2,4 & 8) are all set
    IF ((@TablesToDeleteFrom & 1) <> 0 AND
        (@TablesToDeleteFrom & 2) <> 0 AND
        (@TablesToDeleteFrom & 4) <> 0 AND
        (@TablesToDeleteFrom & 8) <> 0 AND
        (EXISTS (SELECT UserId FROM dbo.aspnet_Users WHERE @UserId = UserId)))
    BEGIN
        DELETE FROM dbo.aspnet_Users WHERE @UserId = UserId

        SELECT @ErrorCode = @@ERROR,
                @RowCount = @@ROWCOUNT

        IF( @ErrorCode <> 0 )
            GOTO Cleanup

        IF (@RowCount <> 0)
            SELECT  @NumTablesDeletedFrom = @NumTablesDeletedFrom + 1
    END

    IF( @TranStarted = 1 )
    BEGIN
	    SET @TranStarted = 0
	    COMMIT TRANSACTION
    END

    RETURN 0

Cleanup:
    SET @NumTablesDeletedFrom = 0

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
	    ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode

END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Roles_DeleteRole]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Roles_DeleteRole]
    @ApplicationName            nvarchar(256),
    @RoleName                   nvarchar(256),
    @DeleteOnlyIfRoleIsEmpty    bit
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN(1)

    DECLARE @ErrorCode     int
    SET @ErrorCode = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
        BEGIN TRANSACTION
        SET @TranStarted = 1
    END
    ELSE
        SET @TranStarted = 0

    DECLARE @RoleId   uniqueidentifier
    SELECT  @RoleId = NULL
    SELECT  @RoleId = RoleId FROM dbo.aspnet_Roles WHERE LoweredRoleName = LOWER(@RoleName) AND ApplicationId = @ApplicationId

    IF (@RoleId IS NULL)
    BEGIN
        SELECT @ErrorCode = 1
        GOTO Cleanup
    END
    IF (@DeleteOnlyIfRoleIsEmpty <> 0)
    BEGIN
        IF (EXISTS (SELECT RoleId FROM dbo.aspnet_UsersInRoles  WHERE @RoleId = RoleId))
        BEGIN
            SELECT @ErrorCode = 2
            GOTO Cleanup
        END
    END


    DELETE FROM dbo.aspnet_UsersInRoles  WHERE @RoleId = RoleId

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    DELETE FROM dbo.aspnet_Roles WHERE @RoleId = RoleId  AND ApplicationId = @ApplicationId

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
        COMMIT TRANSACTION
    END

    RETURN(0)

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
        ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_UpdateUserInfo]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_UpdateUserInfo]
    @ApplicationName                nvarchar(256),
    @UserName                       nvarchar(256),
    @IsPasswordCorrect              bit,
    @UpdateLastLoginActivityDate    bit,
    @MaxInvalidPasswordAttempts     int,
    @PasswordAttemptWindow          int,
    @CurrentTimeUtc                 datetime,
    @LastLoginDate                  datetime,
    @LastActivityDate               datetime
AS
BEGIN
    DECLARE @UserId                                 uniqueidentifier
    DECLARE @IsApproved                             bit
    DECLARE @IsLockedOut                            bit
    DECLARE @LastLockoutDate                        datetime
    DECLARE @FailedPasswordAttemptCount             int
    DECLARE @FailedPasswordAttemptWindowStart       datetime
    DECLARE @FailedPasswordAnswerAttemptCount       int
    DECLARE @FailedPasswordAnswerAttemptWindowStart datetime

    DECLARE @ErrorCode     int
    SET @ErrorCode = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
	    BEGIN TRANSACTION
	    SET @TranStarted = 1
    END
    ELSE
    	SET @TranStarted = 0

    SELECT  @UserId = u.UserId,
            @IsApproved = m.IsApproved,
            @IsLockedOut = m.IsLockedOut,
            @LastLockoutDate = m.LastLockoutDate,
            @FailedPasswordAttemptCount = m.FailedPasswordAttemptCount,
            @FailedPasswordAttemptWindowStart = m.FailedPasswordAttemptWindowStart,
            @FailedPasswordAnswerAttemptCount = m.FailedPasswordAnswerAttemptCount,
            @FailedPasswordAnswerAttemptWindowStart = m.FailedPasswordAnswerAttemptWindowStart
    FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m WITH ( UPDLOCK )
    WHERE   LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.ApplicationId = a.ApplicationId    AND
            u.UserId = m.UserId AND
            LOWER(@UserName) = u.LoweredUserName

    IF ( @@rowcount = 0 )
    BEGIN
        SET @ErrorCode = 1
        GOTO Cleanup
    END

    IF( @IsLockedOut = 1 )
    BEGIN
        GOTO Cleanup
    END

    IF( @IsPasswordCorrect = 0 )
    BEGIN
        IF( @CurrentTimeUtc > DATEADD( minute, @PasswordAttemptWindow, @FailedPasswordAttemptWindowStart ) )
        BEGIN
            SET @FailedPasswordAttemptWindowStart = @CurrentTimeUtc
            SET @FailedPasswordAttemptCount = 1
        END
        ELSE
        BEGIN
            SET @FailedPasswordAttemptWindowStart = @CurrentTimeUtc
            SET @FailedPasswordAttemptCount = @FailedPasswordAttemptCount + 1
        END

        BEGIN
            IF( @FailedPasswordAttemptCount >= @MaxInvalidPasswordAttempts )
            BEGIN
                SET @IsLockedOut = 1
                SET @LastLockoutDate = @CurrentTimeUtc
            END
        END
    END
    ELSE
    BEGIN
        IF( @FailedPasswordAttemptCount > 0 OR @FailedPasswordAnswerAttemptCount > 0 )
        BEGIN
            SET @FailedPasswordAttemptCount = 0
            SET @FailedPasswordAttemptWindowStart = CONVERT( datetime, '17540101', 112 )
            SET @FailedPasswordAnswerAttemptCount = 0
            SET @FailedPasswordAnswerAttemptWindowStart = CONVERT( datetime, '17540101', 112 )
            SET @LastLockoutDate = CONVERT( datetime, '17540101', 112 )
        END
    END

    IF( @UpdateLastLoginActivityDate = 1 )
    BEGIN
        UPDATE  dbo.aspnet_Users
        SET     LastActivityDate = @LastActivityDate
        WHERE   @UserId = UserId

        IF( @@ERROR <> 0 )
        BEGIN
            SET @ErrorCode = -1
            GOTO Cleanup
        END

        UPDATE  dbo.aspnet_Membership
        SET     LastLoginDate = @LastLoginDate
        WHERE   UserId = @UserId

        IF( @@ERROR <> 0 )
        BEGIN
            SET @ErrorCode = -1
            GOTO Cleanup
        END
    END


    UPDATE dbo.aspnet_Membership
    SET IsLockedOut = @IsLockedOut, LastLockoutDate = @LastLockoutDate,
        FailedPasswordAttemptCount = @FailedPasswordAttemptCount,
        FailedPasswordAttemptWindowStart = @FailedPasswordAttemptWindowStart,
        FailedPasswordAnswerAttemptCount = @FailedPasswordAnswerAttemptCount,
        FailedPasswordAnswerAttemptWindowStart = @FailedPasswordAnswerAttemptWindowStart
    WHERE @UserId = UserId

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF( @TranStarted = 1 )
    BEGIN
	SET @TranStarted = 0
	COMMIT TRANSACTION
    END

    RETURN @ErrorCode

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
    	ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode

END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_UpdateUser]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_UpdateUser]
    @ApplicationName      nvarchar(256),
    @UserName             nvarchar(256),
    @Email                nvarchar(256),
    @Comment              ntext,
    @IsApproved           bit,
    @LastLoginDate        datetime,
    @LastActivityDate     datetime,
    @UniqueEmail          int,
    @CurrentTimeUtc       datetime
AS
BEGIN
    DECLARE @UserId uniqueidentifier
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @UserId = NULL
    SELECT  @UserId = u.UserId, @ApplicationId = a.ApplicationId
    FROM    dbo.aspnet_Users u, dbo.aspnet_Applications a, dbo.aspnet_Membership m
    WHERE   LoweredUserName = LOWER(@UserName) AND
            u.ApplicationId = a.ApplicationId  AND
            LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.UserId = m.UserId

    IF (@UserId IS NULL)
        RETURN(1)

    IF (@UniqueEmail = 1)
    BEGIN
        IF (EXISTS (SELECT *
                    FROM  dbo.aspnet_Membership WITH (UPDLOCK, HOLDLOCK)
                    WHERE ApplicationId = @ApplicationId  AND @UserId <> UserId AND LoweredEmail = LOWER(@Email)))
        BEGIN
            RETURN(7)
        END
    END

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
	    BEGIN TRANSACTION
	    SET @TranStarted = 1
    END
    ELSE
	SET @TranStarted = 0

    UPDATE dbo.aspnet_Users WITH (ROWLOCK)
    SET
         LastActivityDate = @LastActivityDate
    WHERE
       @UserId = UserId

    IF( @@ERROR <> 0 )
        GOTO Cleanup

    UPDATE dbo.aspnet_Membership WITH (ROWLOCK)
    SET
         Email            = @Email,
         LoweredEmail     = LOWER(@Email),
         Comment          = @Comment,
         IsApproved       = @IsApproved,
         LastLoginDate    = @LastLoginDate
    WHERE
       @UserId = UserId

    IF( @@ERROR <> 0 )
        GOTO Cleanup

    IF( @TranStarted = 1 )
    BEGIN
	SET @TranStarted = 0
	COMMIT TRANSACTION
    END

    RETURN 0

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
    	ROLLBACK TRANSACTION
    END

    RETURN -1
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_UnlockUser]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_UnlockUser]
    @ApplicationName                         nvarchar(256),
    @UserName                                nvarchar(256)
AS
BEGIN
    DECLARE @UserId uniqueidentifier
    SELECT  @UserId = NULL
    SELECT  @UserId = u.UserId
    FROM    dbo.aspnet_Users u, dbo.aspnet_Applications a, dbo.aspnet_Membership m
    WHERE   LoweredUserName = LOWER(@UserName) AND
            u.ApplicationId = a.ApplicationId  AND
            LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.UserId = m.UserId

    IF ( @UserId IS NULL )
        RETURN 1

    UPDATE dbo.aspnet_Membership
    SET IsLockedOut = 0,
        FailedPasswordAttemptCount = 0,
        FailedPasswordAttemptWindowStart = CONVERT( datetime, '17540101', 112 ),
        FailedPasswordAnswerAttemptCount = 0,
        FailedPasswordAnswerAttemptWindowStart = CONVERT( datetime, '17540101', 112 ),
        LastLockoutDate = CONVERT( datetime, '17540101', 112 )
    WHERE @UserId = UserId

    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_SetPassword]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_SetPassword]
    @ApplicationName  nvarchar(256),
    @UserName         nvarchar(256),
    @NewPassword      nvarchar(128),
    @PasswordSalt     nvarchar(128),
    @CurrentTimeUtc   datetime,
    @PasswordFormat   int = 0
AS
BEGIN
    DECLARE @UserId uniqueidentifier
    SELECT  @UserId = NULL
    SELECT  @UserId = u.UserId
    FROM    dbo.aspnet_Users u, dbo.aspnet_Applications a, dbo.aspnet_Membership m
    WHERE   LoweredUserName = LOWER(@UserName) AND
            u.ApplicationId = a.ApplicationId  AND
            LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.UserId = m.UserId

    IF (@UserId IS NULL)
        RETURN(1)

    UPDATE dbo.aspnet_Membership
    SET Password = @NewPassword, PasswordFormat = @PasswordFormat, PasswordSalt = @PasswordSalt,
        LastPasswordChangedDate = @CurrentTimeUtc
    WHERE @UserId = UserId
    RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_ResetPassword]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_ResetPassword]
    @ApplicationName             nvarchar(256),
    @UserName                    nvarchar(256),
    @NewPassword                 nvarchar(128),
    @MaxInvalidPasswordAttempts  int,
    @PasswordAttemptWindow       int,
    @PasswordSalt                nvarchar(128),
    @CurrentTimeUtc              datetime,
    @PasswordFormat              int = 0,
    @PasswordAnswer              nvarchar(128) = NULL
AS
BEGIN
    DECLARE @IsLockedOut                            bit
    DECLARE @LastLockoutDate                        datetime
    DECLARE @FailedPasswordAttemptCount             int
    DECLARE @FailedPasswordAttemptWindowStart       datetime
    DECLARE @FailedPasswordAnswerAttemptCount       int
    DECLARE @FailedPasswordAnswerAttemptWindowStart datetime

    DECLARE @UserId                                 uniqueidentifier
    SET     @UserId = NULL

    DECLARE @ErrorCode     int
    SET @ErrorCode = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
	    BEGIN TRANSACTION
	    SET @TranStarted = 1
    END
    ELSE
    	SET @TranStarted = 0

    SELECT  @UserId = u.UserId
    FROM    dbo.aspnet_Users u, dbo.aspnet_Applications a, dbo.aspnet_Membership m
    WHERE   LoweredUserName = LOWER(@UserName) AND
            u.ApplicationId = a.ApplicationId  AND
            LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.UserId = m.UserId

    IF ( @UserId IS NULL )
    BEGIN
        SET @ErrorCode = 1
        GOTO Cleanup
    END

    SELECT @IsLockedOut = IsLockedOut,
           @LastLockoutDate = LastLockoutDate,
           @FailedPasswordAttemptCount = FailedPasswordAttemptCount,
           @FailedPasswordAttemptWindowStart = FailedPasswordAttemptWindowStart,
           @FailedPasswordAnswerAttemptCount = FailedPasswordAnswerAttemptCount,
           @FailedPasswordAnswerAttemptWindowStart = FailedPasswordAnswerAttemptWindowStart
    FROM dbo.aspnet_Membership WITH ( UPDLOCK )
    WHERE @UserId = UserId

    IF( @IsLockedOut = 1 )
    BEGIN
        SET @ErrorCode = 99
        GOTO Cleanup
    END

    UPDATE dbo.aspnet_Membership
    SET    Password = @NewPassword,
           LastPasswordChangedDate = @CurrentTimeUtc,
           PasswordFormat = @PasswordFormat,
           PasswordSalt = @PasswordSalt
    WHERE  @UserId = UserId AND
           ( ( @PasswordAnswer IS NULL ) OR ( LOWER( PasswordAnswer ) = LOWER( @PasswordAnswer ) ) )

    IF ( @@ROWCOUNT = 0 )
        BEGIN
            IF( @CurrentTimeUtc > DATEADD( minute, @PasswordAttemptWindow, @FailedPasswordAnswerAttemptWindowStart ) )
            BEGIN
                SET @FailedPasswordAnswerAttemptWindowStart = @CurrentTimeUtc
                SET @FailedPasswordAnswerAttemptCount = 1
            END
            ELSE
            BEGIN
                SET @FailedPasswordAnswerAttemptWindowStart = @CurrentTimeUtc
                SET @FailedPasswordAnswerAttemptCount = @FailedPasswordAnswerAttemptCount + 1
            END

            BEGIN
                IF( @FailedPasswordAnswerAttemptCount >= @MaxInvalidPasswordAttempts )
                BEGIN
                    SET @IsLockedOut = 1
                    SET @LastLockoutDate = @CurrentTimeUtc
                END
            END

            SET @ErrorCode = 3
        END
    ELSE
        BEGIN
            IF( @FailedPasswordAnswerAttemptCount > 0 )
            BEGIN
                SET @FailedPasswordAnswerAttemptCount = 0
                SET @FailedPasswordAnswerAttemptWindowStart = CONVERT( datetime, '17540101', 112 )
            END
        END

    IF( NOT ( @PasswordAnswer IS NULL ) )
    BEGIN
        UPDATE dbo.aspnet_Membership
        SET IsLockedOut = @IsLockedOut, LastLockoutDate = @LastLockoutDate,
            FailedPasswordAttemptCount = @FailedPasswordAttemptCount,
            FailedPasswordAttemptWindowStart = @FailedPasswordAttemptWindowStart,
            FailedPasswordAnswerAttemptCount = @FailedPasswordAnswerAttemptCount,
            FailedPasswordAnswerAttemptWindowStart = @FailedPasswordAnswerAttemptWindowStart
        WHERE @UserId = UserId

        IF( @@ERROR <> 0 )
        BEGIN
            SET @ErrorCode = -1
            GOTO Cleanup
        END
    END

    IF( @TranStarted = 1 )
    BEGIN
	SET @TranStarted = 0
	COMMIT TRANSACTION
    END

    RETURN @ErrorCode

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
    	ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode

END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_GetUserByUserId]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_GetUserByUserId]
    @UserId               uniqueidentifier,
    @CurrentTimeUtc       datetime,
    @UpdateLastActivity   bit = 0
AS
BEGIN
    IF ( @UpdateLastActivity = 1 )
    BEGIN
        UPDATE   dbo.aspnet_Users
        SET      LastActivityDate = @CurrentTimeUtc
        FROM     dbo.aspnet_Users
        WHERE    @UserId = UserId

        IF ( @@ROWCOUNT = 0 ) -- User ID not found
            RETURN -1
    END

    SELECT  m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
            m.CreateDate, m.LastLoginDate, u.LastActivityDate,
            m.LastPasswordChangedDate, u.UserName, m.IsLockedOut,
            m.LastLockoutDate
    FROM    dbo.aspnet_Users u, dbo.aspnet_Membership m
    WHERE   @UserId = u.UserId AND u.UserId = m.UserId

    IF ( @@ROWCOUNT = 0 ) -- User ID not found
       RETURN -1

    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_GetUserByName]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_GetUserByName]
    @ApplicationName      nvarchar(256),
    @UserName             nvarchar(256),
    @CurrentTimeUtc       datetime,
    @UpdateLastActivity   bit = 0
AS
BEGIN
    DECLARE @UserId uniqueidentifier

    IF (@UpdateLastActivity = 1)
    BEGIN
        -- select user ID from aspnet_users table
        SELECT TOP 1 @UserId = u.UserId
        FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
        WHERE    LOWER(@ApplicationName) = a.LoweredApplicationName AND
                u.ApplicationId = a.ApplicationId    AND
                LOWER(@UserName) = u.LoweredUserName AND u.UserId = m.UserId

        IF (@@ROWCOUNT = 0) -- Username not found
            RETURN -1

        UPDATE   dbo.aspnet_Users
        SET      LastActivityDate = @CurrentTimeUtc
        WHERE    @UserId = UserId

        SELECT m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
                m.CreateDate, m.LastLoginDate, u.LastActivityDate, m.LastPasswordChangedDate,
                u.UserId, m.IsLockedOut, m.LastLockoutDate
        FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
        WHERE  @UserId = u.UserId AND u.UserId = m.UserId 
    END
    ELSE
    BEGIN
        SELECT TOP 1 m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
                m.CreateDate, m.LastLoginDate, u.LastActivityDate, m.LastPasswordChangedDate,
                u.UserId, m.IsLockedOut,m.LastLockoutDate
        FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
        WHERE    LOWER(@ApplicationName) = a.LoweredApplicationName AND
                u.ApplicationId = a.ApplicationId    AND
                LOWER(@UserName) = u.LoweredUserName AND u.UserId = m.UserId

        IF (@@ROWCOUNT = 0) -- Username not found
            RETURN -1
    END

    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_GetUserByEmail]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_GetUserByEmail]
    @ApplicationName  nvarchar(256),
    @Email            nvarchar(256)
AS
BEGIN
    IF( @Email IS NULL )
        SELECT  u.UserName
        FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
        WHERE   LOWER(@ApplicationName) = a.LoweredApplicationName AND
                u.ApplicationId = a.ApplicationId    AND
                u.UserId = m.UserId AND
                m.ApplicationId = a.ApplicationId AND
                m.LoweredEmail IS NULL
    ELSE
        SELECT  u.UserName
        FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
        WHERE   LOWER(@ApplicationName) = a.LoweredApplicationName AND
                u.ApplicationId = a.ApplicationId    AND
                u.UserId = m.UserId AND
                m.ApplicationId = a.ApplicationId AND
                LOWER(@Email) = m.LoweredEmail

    IF (@@rowcount = 0)
        RETURN(1)
    RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_GetPasswordWithFormat]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_GetPasswordWithFormat]
    @ApplicationName                nvarchar(256),
    @UserName                       nvarchar(256),
    @UpdateLastLoginActivityDate    bit,
    @CurrentTimeUtc                 datetime
AS
BEGIN
    DECLARE @IsLockedOut                        bit
    DECLARE @UserId                             uniqueidentifier
    DECLARE @Password                           nvarchar(128)
    DECLARE @PasswordSalt                       nvarchar(128)
    DECLARE @PasswordFormat                     int
    DECLARE @FailedPasswordAttemptCount         int
    DECLARE @FailedPasswordAnswerAttemptCount   int
    DECLARE @IsApproved                         bit
    DECLARE @LastActivityDate                   datetime
    DECLARE @LastLoginDate                      datetime

    SELECT  @UserId          = NULL

    SELECT  @UserId = u.UserId, @IsLockedOut = m.IsLockedOut, @Password=Password, @PasswordFormat=PasswordFormat,
            @PasswordSalt=PasswordSalt, @FailedPasswordAttemptCount=FailedPasswordAttemptCount,
		    @FailedPasswordAnswerAttemptCount=FailedPasswordAnswerAttemptCount, @IsApproved=IsApproved,
            @LastActivityDate = LastActivityDate, @LastLoginDate = LastLoginDate
    FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
    WHERE   LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.ApplicationId = a.ApplicationId    AND
            u.UserId = m.UserId AND
            LOWER(@UserName) = u.LoweredUserName

    IF (@UserId IS NULL)
        RETURN 1

    IF (@IsLockedOut = 1)
        RETURN 99

    SELECT   @Password, @PasswordFormat, @PasswordSalt, @FailedPasswordAttemptCount,
             @FailedPasswordAnswerAttemptCount, @IsApproved, @LastLoginDate, @LastActivityDate

    IF (@UpdateLastLoginActivityDate = 1 AND @IsApproved = 1)
    BEGIN
        UPDATE  dbo.aspnet_Membership
        SET     LastLoginDate = @CurrentTimeUtc
        WHERE   UserId = @UserId

        UPDATE  dbo.aspnet_Users
        SET     LastActivityDate = @CurrentTimeUtc
        WHERE   @UserId = UserId
    END


    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_GetPassword]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_GetPassword]
    @ApplicationName                nvarchar(256),
    @UserName                       nvarchar(256),
    @MaxInvalidPasswordAttempts     int,
    @PasswordAttemptWindow          int,
    @CurrentTimeUtc                 datetime,
    @PasswordAnswer                 nvarchar(128) = NULL
AS
BEGIN
    DECLARE @UserId                                 uniqueidentifier
    DECLARE @PasswordFormat                         int
    DECLARE @Password                               nvarchar(128)
    DECLARE @passAns                                nvarchar(128)
    DECLARE @IsLockedOut                            bit
    DECLARE @LastLockoutDate                        datetime
    DECLARE @FailedPasswordAttemptCount             int
    DECLARE @FailedPasswordAttemptWindowStart       datetime
    DECLARE @FailedPasswordAnswerAttemptCount       int
    DECLARE @FailedPasswordAnswerAttemptWindowStart datetime

    DECLARE @ErrorCode     int
    SET @ErrorCode = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
	    BEGIN TRANSACTION
	    SET @TranStarted = 1
    END
    ELSE
    	SET @TranStarted = 0

    SELECT  @UserId = u.UserId,
            @Password = m.Password,
            @passAns = m.PasswordAnswer,
            @PasswordFormat = m.PasswordFormat,
            @IsLockedOut = m.IsLockedOut,
            @LastLockoutDate = m.LastLockoutDate,
            @FailedPasswordAttemptCount = m.FailedPasswordAttemptCount,
            @FailedPasswordAttemptWindowStart = m.FailedPasswordAttemptWindowStart,
            @FailedPasswordAnswerAttemptCount = m.FailedPasswordAnswerAttemptCount,
            @FailedPasswordAnswerAttemptWindowStart = m.FailedPasswordAnswerAttemptWindowStart
    FROM    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m WITH ( UPDLOCK )
    WHERE   LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.ApplicationId = a.ApplicationId    AND
            u.UserId = m.UserId AND
            LOWER(@UserName) = u.LoweredUserName

    IF ( @@rowcount = 0 )
    BEGIN
        SET @ErrorCode = 1
        GOTO Cleanup
    END

    IF( @IsLockedOut = 1 )
    BEGIN
        SET @ErrorCode = 99
        GOTO Cleanup
    END

    IF ( NOT( @PasswordAnswer IS NULL ) )
    BEGIN
        IF( ( @passAns IS NULL ) OR ( LOWER( @passAns ) <> LOWER( @PasswordAnswer ) ) )
        BEGIN
            IF( @CurrentTimeUtc > DATEADD( minute, @PasswordAttemptWindow, @FailedPasswordAnswerAttemptWindowStart ) )
            BEGIN
                SET @FailedPasswordAnswerAttemptWindowStart = @CurrentTimeUtc
                SET @FailedPasswordAnswerAttemptCount = 1
            END
            ELSE
            BEGIN
                SET @FailedPasswordAnswerAttemptCount = @FailedPasswordAnswerAttemptCount + 1
                SET @FailedPasswordAnswerAttemptWindowStart = @CurrentTimeUtc
            END

            BEGIN
                IF( @FailedPasswordAnswerAttemptCount >= @MaxInvalidPasswordAttempts )
                BEGIN
                    SET @IsLockedOut = 1
                    SET @LastLockoutDate = @CurrentTimeUtc
                END
            END

            SET @ErrorCode = 3
        END
        ELSE
        BEGIN
            IF( @FailedPasswordAnswerAttemptCount > 0 )
            BEGIN
                SET @FailedPasswordAnswerAttemptCount = 0
                SET @FailedPasswordAnswerAttemptWindowStart = CONVERT( datetime, '17540101', 112 )
            END
        END

        UPDATE dbo.aspnet_Membership
        SET IsLockedOut = @IsLockedOut, LastLockoutDate = @LastLockoutDate,
            FailedPasswordAttemptCount = @FailedPasswordAttemptCount,
            FailedPasswordAttemptWindowStart = @FailedPasswordAttemptWindowStart,
            FailedPasswordAnswerAttemptCount = @FailedPasswordAnswerAttemptCount,
            FailedPasswordAnswerAttemptWindowStart = @FailedPasswordAnswerAttemptWindowStart
        WHERE @UserId = UserId

        IF( @@ERROR <> 0 )
        BEGIN
            SET @ErrorCode = -1
            GOTO Cleanup
        END
    END

    IF( @TranStarted = 1 )
    BEGIN
	SET @TranStarted = 0
	COMMIT TRANSACTION
    END

    IF( @ErrorCode = 0 )
        SELECT @Password, @PasswordFormat

    RETURN @ErrorCode

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
    	ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode

END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_GetNumberOfUsersOnline]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_GetNumberOfUsersOnline]
    @ApplicationName            nvarchar(256),
    @MinutesSinceLastInActive   int,
    @CurrentTimeUtc             datetime
AS
BEGIN
    DECLARE @DateActive datetime
    SELECT  @DateActive = DATEADD(minute,  -(@MinutesSinceLastInActive), @CurrentTimeUtc)

    DECLARE @NumOnline int
    SELECT  @NumOnline = COUNT(*)
    FROM    dbo.aspnet_Users u(NOLOCK),
            dbo.aspnet_Applications a(NOLOCK),
            dbo.aspnet_Membership m(NOLOCK)
    WHERE   u.ApplicationId = a.ApplicationId                  AND
            LastActivityDate > @DateActive                     AND
            a.LoweredApplicationName = LOWER(@ApplicationName) AND
            u.UserId = m.UserId
    RETURN(@NumOnline)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_GetAllUsers]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_GetAllUsers]
    @ApplicationName       nvarchar(256),
    @PageIndex             int,
    @PageSize              int
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM dbo.aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN 0


    -- Set the page bounds
    DECLARE @PageLowerBound int
    DECLARE @PageUpperBound int
    DECLARE @TotalRecords   int
    SET @PageLowerBound = @PageSize * @PageIndex
    SET @PageUpperBound = @PageSize - 1 + @PageLowerBound

    -- Create a temp table TO store the select results
    CREATE TABLE #PageIndexForUsers
    (
        IndexId int IDENTITY (0, 1) NOT NULL,
        UserId uniqueidentifier
    )

    -- Insert into our temp table
    INSERT INTO #PageIndexForUsers (UserId)
    SELECT u.UserId
    FROM   dbo.aspnet_Membership m, dbo.aspnet_Users u
    WHERE  u.ApplicationId = @ApplicationId AND u.UserId = m.UserId 
    ORDER BY u.UserName

    SELECT @TotalRecords = @@ROWCOUNT

 SELECT u.UserName, m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
            m.CreateDate,
            m.LastLoginDate,
            u.LastActivityDate,
            m.LastPasswordChangedDate,
            u.UserId, m.IsLockedOut,
            m.LastLockoutDate
    FROM   dbo.aspnet_Membership m, dbo.aspnet_Users u, #PageIndexForUsers p
    WHERE  u.UserId = p.UserId AND u.UserId = m.UserId AND
           p.IndexId >= @PageLowerBound AND p.IndexId <= @PageUpperBound
    ORDER BY u.UserName
    RETURN @TotalRecords
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_FindUsersByName]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_FindUsersByName]
    @ApplicationName       nvarchar(256),
    @UserNameToMatch       nvarchar(256),
    @PageIndex             int,
    @PageSize              int
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM dbo.aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN 0

    -- Set the page bounds
    DECLARE @PageLowerBound int
    DECLARE @PageUpperBound int
    DECLARE @TotalRecords   int
    SET @PageLowerBound = @PageSize * @PageIndex
    SET @PageUpperBound = @PageSize - 1 + @PageLowerBound

    -- Create a temp table TO store the select results
    CREATE TABLE #PageIndexForUsers
    (
        IndexId int IDENTITY (0, 1) NOT NULL,
        UserId uniqueidentifier
    )

    -- Insert into our temp table
    INSERT INTO #PageIndexForUsers (UserId)
        SELECT u.UserId
        FROM   dbo.aspnet_Users u, dbo.aspnet_Membership m
        WHERE  u.ApplicationId = @ApplicationId AND m.UserId = u.UserId AND u.LoweredUserName LIKE LOWER(@UserNameToMatch)
        ORDER BY u.UserName


    SELECT  u.UserName, m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
            m.CreateDate,
            m.LastLoginDate,
            u.LastActivityDate,
            m.LastPasswordChangedDate,
            u.UserId, m.IsLockedOut,
            m.LastLockoutDate
    FROM   dbo.aspnet_Membership m, dbo.aspnet_Users u, #PageIndexForUsers p
    WHERE  u.UserId = p.UserId AND u.UserId = m.UserId AND
           p.IndexId >= @PageLowerBound AND p.IndexId <= @PageUpperBound
    ORDER BY u.UserName

    SELECT  @TotalRecords = COUNT(*)
    FROM    #PageIndexForUsers
    RETURN @TotalRecords
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_FindUsersByEmail]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_FindUsersByEmail]
    @ApplicationName       nvarchar(256),
    @EmailToMatch          nvarchar(256),
    @PageIndex             int,
    @PageSize              int
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM dbo.aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN 0

    -- Set the page bounds
    DECLARE @PageLowerBound int
    DECLARE @PageUpperBound int
    DECLARE @TotalRecords   int
    SET @PageLowerBound = @PageSize * @PageIndex
    SET @PageUpperBound = @PageSize - 1 + @PageLowerBound

    -- Create a temp table TO store the select results
    CREATE TABLE #PageIndexForUsers
    (
        IndexId int IDENTITY (0, 1) NOT NULL,
        UserId uniqueidentifier
    )

    -- Insert into our temp table
    IF( @EmailToMatch IS NULL )
        INSERT INTO #PageIndexForUsers (UserId)
            SELECT u.UserId
            FROM   dbo.aspnet_Users u, dbo.aspnet_Membership m
            WHERE  u.ApplicationId = @ApplicationId AND m.UserId = u.UserId AND m.Email IS NULL
            ORDER BY m.LoweredEmail
    ELSE
        INSERT INTO #PageIndexForUsers (UserId)
            SELECT u.UserId
            FROM   dbo.aspnet_Users u, dbo.aspnet_Membership m
            WHERE  u.ApplicationId = @ApplicationId AND m.UserId = u.UserId AND m.LoweredEmail LIKE LOWER(@EmailToMatch)
            ORDER BY m.LoweredEmail

    SELECT  u.UserName, m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
            m.CreateDate,
            m.LastLoginDate,
            u.LastActivityDate,
            m.LastPasswordChangedDate,
            u.UserId, m.IsLockedOut,
            m.LastLockoutDate
    FROM   dbo.aspnet_Membership m, dbo.aspnet_Users u, #PageIndexForUsers p
    WHERE  u.UserId = p.UserId AND u.UserId = m.UserId AND
           p.IndexId >= @PageLowerBound AND p.IndexId <= @PageUpperBound
    ORDER BY m.LoweredEmail

    SELECT  @TotalRecords = COUNT(*)
    FROM    #PageIndexForUsers
    RETURN @TotalRecords
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_CreateUser]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_CreateUser]
    @ApplicationName                        nvarchar(256),
    @UserName                               nvarchar(256),
    @Password                               nvarchar(128),
    @PasswordSalt                           nvarchar(128),
    @Email                                  nvarchar(256),
    @PasswordQuestion                       nvarchar(256),
    @PasswordAnswer                         nvarchar(128),
    @IsApproved                             bit,
    @CurrentTimeUtc                         datetime,
    @CreateDate                             datetime = NULL,
    @UniqueEmail                            int      = 0,
    @PasswordFormat                         int      = 0,
    @UserId                                 uniqueidentifier OUTPUT
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL

    DECLARE @NewUserId uniqueidentifier
    SELECT @NewUserId = NULL

    DECLARE @IsLockedOut bit
    SET @IsLockedOut = 0

    DECLARE @LastLockoutDate  datetime
    SET @LastLockoutDate = CONVERT( datetime, '17540101', 112 )

    DECLARE @FailedPasswordAttemptCount int
    SET @FailedPasswordAttemptCount = 0

    DECLARE @FailedPasswordAttemptWindowStart  datetime
    SET @FailedPasswordAttemptWindowStart = CONVERT( datetime, '17540101', 112 )

    DECLARE @FailedPasswordAnswerAttemptCount int
    SET @FailedPasswordAnswerAttemptCount = 0

    DECLARE @FailedPasswordAnswerAttemptWindowStart  datetime
    SET @FailedPasswordAnswerAttemptWindowStart = CONVERT( datetime, '17540101', 112 )

    DECLARE @NewUserCreated bit
    DECLARE @ReturnValue   int
    SET @ReturnValue = 0

    DECLARE @ErrorCode     int
    SET @ErrorCode = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
	    BEGIN TRANSACTION
	    SET @TranStarted = 1
    END
    ELSE
    	SET @TranStarted = 0

    EXEC dbo.aspnet_Applications_CreateApplication @ApplicationName, @ApplicationId OUTPUT

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    SET @CreateDate = @CurrentTimeUtc

    SELECT  @NewUserId = UserId FROM dbo.aspnet_Users WHERE LOWER(@UserName) = LoweredUserName AND @ApplicationId = ApplicationId
    IF ( @NewUserId IS NULL )
    BEGIN
        SET @NewUserId = @UserId
        EXEC @ReturnValue = dbo.aspnet_Users_CreateUser @ApplicationId, @UserName, 0, @CreateDate, @NewUserId OUTPUT
        SET @NewUserCreated = 1
    END
    ELSE
    BEGIN
        SET @NewUserCreated = 0
        IF( @NewUserId <> @UserId AND @UserId IS NOT NULL )
        BEGIN
            SET @ErrorCode = 6
            GOTO Cleanup
        END
    END

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF( @ReturnValue = -1 )
    BEGIN
        SET @ErrorCode = 10
        GOTO Cleanup
    END

    IF ( EXISTS ( SELECT UserId
                  FROM   dbo.aspnet_Membership
                  WHERE  @NewUserId = UserId ) )
    BEGIN
        SET @ErrorCode = 6
        GOTO Cleanup
    END

    SET @UserId = @NewUserId

    IF (@UniqueEmail = 1)
    BEGIN
        IF (EXISTS (SELECT *
                    FROM  dbo.aspnet_Membership m WITH ( UPDLOCK, HOLDLOCK )
                    WHERE ApplicationId = @ApplicationId AND LoweredEmail = LOWER(@Email)))
        BEGIN
            SET @ErrorCode = 7
            GOTO Cleanup
        END
    END

    IF (@NewUserCreated = 0)
    BEGIN
        UPDATE dbo.aspnet_Users
        SET    LastActivityDate = @CreateDate
        WHERE  @UserId = UserId
        IF( @@ERROR <> 0 )
        BEGIN
            SET @ErrorCode = -1
            GOTO Cleanup
        END
    END

    INSERT INTO dbo.aspnet_Membership
                ( ApplicationId,
                  UserId,
                  Password,
                  PasswordSalt,
                  Email,
                  LoweredEmail,
                  PasswordQuestion,
                  PasswordAnswer,
                  PasswordFormat,
                  IsApproved,
                  IsLockedOut,
                  CreateDate,
                  LastLoginDate,
                  LastPasswordChangedDate,
                  LastLockoutDate,
                  FailedPasswordAttemptCount,
                  FailedPasswordAttemptWindowStart,
                  FailedPasswordAnswerAttemptCount,
                  FailedPasswordAnswerAttemptWindowStart )
         VALUES ( @ApplicationId,
                  @UserId,
                  @Password,
                  @PasswordSalt,
                  @Email,
                  LOWER(@Email),
                  @PasswordQuestion,
                  @PasswordAnswer,
                  @PasswordFormat,
                  @IsApproved,
                  @IsLockedOut,
                  @CreateDate,
                  @CreateDate,
                  @CreateDate,
                  @LastLockoutDate,
                  @FailedPasswordAttemptCount,
                  @FailedPasswordAttemptWindowStart,
                  @FailedPasswordAnswerAttemptCount,
                  @FailedPasswordAnswerAttemptWindowStart )

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF( @TranStarted = 1 )
    BEGIN
	    SET @TranStarted = 0
	    COMMIT TRANSACTION
    END

    RETURN 0

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
    	ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode

END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Membership_ChangePasswordQuestionAndAnswer]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Membership_ChangePasswordQuestionAndAnswer]
    @ApplicationName       nvarchar(256),
    @UserName              nvarchar(256),
    @NewPasswordQuestion   nvarchar(256),
    @NewPasswordAnswer     nvarchar(128)
AS
BEGIN
    DECLARE @UserId uniqueidentifier
    SELECT  @UserId = NULL
    SELECT  @UserId = u.UserId
    FROM    dbo.aspnet_Membership m, dbo.aspnet_Users u, dbo.aspnet_Applications a
    WHERE   LoweredUserName = LOWER(@UserName) AND
            u.ApplicationId = a.ApplicationId  AND
            LOWER(@ApplicationName) = a.LoweredApplicationName AND
            u.UserId = m.UserId
    IF (@UserId IS NULL)
    BEGIN
        RETURN(1)
    END

    UPDATE dbo.aspnet_Membership
    SET    PasswordQuestion = @NewPasswordQuestion, PasswordAnswer = @NewPasswordAnswer
    WHERE  UserId=@UserId
    RETURN(0)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_AnyDataInTables]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_AnyDataInTables]
    @TablesToCheck int
AS
BEGIN
    -- Check Membership table if (@TablesToCheck & 1) is set
    IF ((@TablesToCheck & 1) <> 0 AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_MembershipUsers') AND (type = 'V'))))
    BEGIN
        IF (EXISTS(SELECT TOP 1 UserId FROM dbo.aspnet_Membership))
        BEGIN
            SELECT N'aspnet_Membership'
            RETURN
        END
    END

    -- Check aspnet_Roles table if (@TablesToCheck & 2) is set
    IF ((@TablesToCheck & 2) <> 0  AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_Roles') AND (type = 'V'))) )
    BEGIN
        IF (EXISTS(SELECT TOP 1 RoleId FROM dbo.aspnet_Roles))
        BEGIN
            SELECT N'aspnet_Roles'
            RETURN
        END
    END

    -- Check aspnet_Profile table if (@TablesToCheck & 4) is set
    IF ((@TablesToCheck & 4) <> 0  AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_Profiles') AND (type = 'V'))) )
    BEGIN
        IF (EXISTS(SELECT TOP 1 UserId FROM dbo.aspnet_Profile))
        BEGIN
            SELECT N'aspnet_Profile'
            RETURN
        END
    END

    -- Check aspnet_PersonalizationPerUser table if (@TablesToCheck & 8) is set
    IF ((@TablesToCheck & 8) <> 0  AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_WebPartState_User') AND (type = 'V'))) )
    BEGIN
        IF (EXISTS(SELECT TOP 1 UserId FROM dbo.aspnet_PersonalizationPerUser))
        BEGIN
            SELECT N'aspnet_PersonalizationPerUser'
            RETURN
        END
    END

    -- Check aspnet_PersonalizationPerUser table if (@TablesToCheck & 16) is set
    IF ((@TablesToCheck & 16) <> 0  AND
        (EXISTS (SELECT name FROM sysobjects WHERE (name = N'aspnet_WebEvent_LogEvent') AND (type = 'P'))) )
    BEGIN
        IF (EXISTS(SELECT TOP 1 * FROM dbo.aspnet_WebEvent_Events))
        BEGIN
            SELECT N'aspnet_WebEvent_Events'
            RETURN
        END
    END

    -- Check aspnet_Users table if (@TablesToCheck & 1,2,4 & 8) are all set
    IF ((@TablesToCheck & 1) <> 0 AND
        (@TablesToCheck & 2) <> 0 AND
        (@TablesToCheck & 4) <> 0 AND
        (@TablesToCheck & 8) <> 0 AND
        (@TablesToCheck & 32) <> 0 AND
        (@TablesToCheck & 128) <> 0 AND
        (@TablesToCheck & 256) <> 0 AND
        (@TablesToCheck & 512) <> 0 AND
        (@TablesToCheck & 1024) <> 0)
    BEGIN
        IF (EXISTS(SELECT TOP 1 UserId FROM dbo.aspnet_Users))
        BEGIN
            SELECT N'aspnet_Users'
            RETURN
        END
        IF (EXISTS(SELECT TOP 1 ApplicationId FROM dbo.aspnet_Applications))
        BEGIN
            SELECT N'aspnet_Applications'
            RETURN
        END
    END
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAdministration_ResetUserState]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAdministration_ResetUserState] (
    @Count                  int                 OUT,
    @ApplicationName        NVARCHAR(256),
    @InactiveSinceDate      DATETIME            = NULL,
    @UserName               NVARCHAR(256)       = NULL,
    @Path                   NVARCHAR(256)       = NULL)
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
        SELECT @Count = 0
    ELSE
    BEGIN
        DELETE FROM dbo.aspnet_PersonalizationPerUser
        WHERE Id IN (SELECT PerUser.Id
                     FROM dbo.aspnet_PersonalizationPerUser PerUser, dbo.aspnet_Users Users, dbo.aspnet_Paths Paths
                     WHERE Paths.ApplicationId = @ApplicationId
                           AND PerUser.UserId = Users.UserId
                           AND PerUser.PathId = Paths.PathId
                           AND (@InactiveSinceDate IS NULL OR Users.LastActivityDate <= @InactiveSinceDate)
                           AND (@UserName IS NULL OR Users.LoweredUserName = LOWER(@UserName))
                           AND (@Path IS NULL OR Paths.LoweredPath = LOWER(@Path)))

        SELECT @Count = @@ROWCOUNT
    END
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAdministration_ResetSharedState]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAdministration_ResetSharedState] (
    @Count int OUT,
    @ApplicationName NVARCHAR(256),
    @Path NVARCHAR(256))
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
        SELECT @Count = 0
    ELSE
    BEGIN
        DELETE FROM dbo.aspnet_PersonalizationAllUsers
        WHERE PathId IN
            (SELECT AllUsers.PathId
             FROM dbo.aspnet_PersonalizationAllUsers AllUsers, dbo.aspnet_Paths Paths
             WHERE Paths.ApplicationId = @ApplicationId
                   AND AllUsers.PathId = Paths.PathId
                   AND Paths.LoweredPath = LOWER(@Path))

        SELECT @Count = @@ROWCOUNT
    END
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAdministration_GetCountOfState]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAdministration_GetCountOfState] (
    @Count int OUT,
    @AllUsersScope bit,
    @ApplicationName NVARCHAR(256),
    @Path NVARCHAR(256) = NULL,
    @UserName NVARCHAR(256) = NULL,
    @InactiveSinceDate DATETIME = NULL)
AS
BEGIN

    DECLARE @ApplicationId UNIQUEIDENTIFIER
    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
        SELECT @Count = 0
    ELSE
        IF (@AllUsersScope = 1)
            SELECT @Count = COUNT(*)
            FROM dbo.aspnet_PersonalizationAllUsers AllUsers, dbo.aspnet_Paths Paths
            WHERE Paths.ApplicationId = @ApplicationId
                  AND AllUsers.PathId = Paths.PathId
                  AND (@Path IS NULL OR Paths.LoweredPath LIKE LOWER(@Path))
        ELSE
            SELECT @Count = COUNT(*)
            FROM dbo.aspnet_PersonalizationPerUser PerUser, dbo.aspnet_Users Users, dbo.aspnet_Paths Paths
            WHERE Paths.ApplicationId = @ApplicationId
                  AND PerUser.UserId = Users.UserId
                  AND PerUser.PathId = Paths.PathId
                  AND (@Path IS NULL OR Paths.LoweredPath LIKE LOWER(@Path))
                  AND (@UserName IS NULL OR Users.LoweredUserName LIKE LOWER(@UserName))
                  AND (@InactiveSinceDate IS NULL OR Users.LastActivityDate <= @InactiveSinceDate)
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAdministration_FindState]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAdministration_FindState] (
    @AllUsersScope bit,
    @ApplicationName NVARCHAR(256),
    @PageIndex              INT,
    @PageSize               INT,
    @Path NVARCHAR(256) = NULL,
    @UserName NVARCHAR(256) = NULL,
    @InactiveSinceDate DATETIME = NULL)
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
        RETURN

    -- Set the page bounds
    DECLARE @PageLowerBound INT
    DECLARE @PageUpperBound INT
    DECLARE @TotalRecords   INT
    SET @PageLowerBound = @PageSize * @PageIndex
    SET @PageUpperBound = @PageSize - 1 + @PageLowerBound

    -- Create a temp table to store the selected results
    CREATE TABLE #PageIndex (
        IndexId int IDENTITY (0, 1) NOT NULL,
        ItemId UNIQUEIDENTIFIER
    )

    IF (@AllUsersScope = 1)
    BEGIN
        -- Insert into our temp table
        INSERT INTO #PageIndex (ItemId)
        SELECT Paths.PathId
        FROM dbo.aspnet_Paths Paths,
             ((SELECT Paths.PathId
               FROM dbo.aspnet_PersonalizationAllUsers AllUsers, dbo.aspnet_Paths Paths
               WHERE Paths.ApplicationId = @ApplicationId
                      AND AllUsers.PathId = Paths.PathId
                      AND (@Path IS NULL OR Paths.LoweredPath LIKE LOWER(@Path))
              ) AS SharedDataPerPath
              FULL OUTER JOIN
              (SELECT DISTINCT Paths.PathId
               FROM dbo.aspnet_PersonalizationPerUser PerUser, dbo.aspnet_Paths Paths
               WHERE Paths.ApplicationId = @ApplicationId
                      AND PerUser.PathId = Paths.PathId
                      AND (@Path IS NULL OR Paths.LoweredPath LIKE LOWER(@Path))
              ) AS UserDataPerPath
              ON SharedDataPerPath.PathId = UserDataPerPath.PathId
             )
        WHERE Paths.PathId = SharedDataPerPath.PathId OR Paths.PathId = UserDataPerPath.PathId
        ORDER BY Paths.Path ASC

        SELECT @TotalRecords = @@ROWCOUNT

        SELECT Paths.Path,
               SharedDataPerPath.LastUpdatedDate,
               SharedDataPerPath.SharedDataLength,
               UserDataPerPath.UserDataLength,
               UserDataPerPath.UserCount
        FROM dbo.aspnet_Paths Paths,
             ((SELECT PageIndex.ItemId AS PathId,
                      AllUsers.LastUpdatedDate AS LastUpdatedDate,
                      DATALENGTH(AllUsers.PageSettings) AS SharedDataLength
               FROM dbo.aspnet_PersonalizationAllUsers AllUsers, #PageIndex PageIndex
               WHERE AllUsers.PathId = PageIndex.ItemId
                     AND PageIndex.IndexId >= @PageLowerBound AND PageIndex.IndexId <= @PageUpperBound
              ) AS SharedDataPerPath
              FULL OUTER JOIN
              (SELECT PageIndex.ItemId AS PathId,
                      SUM(DATALENGTH(PerUser.PageSettings)) AS UserDataLength,
                      COUNT(*) AS UserCount
               FROM aspnet_PersonalizationPerUser PerUser, #PageIndex PageIndex
               WHERE PerUser.PathId = PageIndex.ItemId
                     AND PageIndex.IndexId >= @PageLowerBound AND PageIndex.IndexId <= @PageUpperBound
               GROUP BY PageIndex.ItemId
              ) AS UserDataPerPath
              ON SharedDataPerPath.PathId = UserDataPerPath.PathId
             )
        WHERE Paths.PathId = SharedDataPerPath.PathId OR Paths.PathId = UserDataPerPath.PathId
        ORDER BY Paths.Path ASC
    END
    ELSE
    BEGIN
        -- Insert into our temp table
        INSERT INTO #PageIndex (ItemId)
        SELECT PerUser.Id
        FROM dbo.aspnet_PersonalizationPerUser PerUser, dbo.aspnet_Users Users, dbo.aspnet_Paths Paths
        WHERE Paths.ApplicationId = @ApplicationId
              AND PerUser.UserId = Users.UserId
              AND PerUser.PathId = Paths.PathId
              AND (@Path IS NULL OR Paths.LoweredPath LIKE LOWER(@Path))
              AND (@UserName IS NULL OR Users.LoweredUserName LIKE LOWER(@UserName))
              AND (@InactiveSinceDate IS NULL OR Users.LastActivityDate <= @InactiveSinceDate)
        ORDER BY Paths.Path ASC, Users.UserName ASC

        SELECT @TotalRecords = @@ROWCOUNT

        SELECT Paths.Path, PerUser.LastUpdatedDate, DATALENGTH(PerUser.PageSettings), Users.UserName, Users.LastActivityDate
        FROM dbo.aspnet_PersonalizationPerUser PerUser, dbo.aspnet_Users Users, dbo.aspnet_Paths Paths, #PageIndex PageIndex
        WHERE PerUser.Id = PageIndex.ItemId
              AND PerUser.UserId = Users.UserId
              AND PerUser.PathId = Paths.PathId
              AND PageIndex.IndexId >= @PageLowerBound AND PageIndex.IndexId <= @PageUpperBound
        ORDER BY Paths.Path ASC, Users.UserName ASC
    END

    RETURN @TotalRecords
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAdministration_DeleteAllState]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAdministration_DeleteAllState] (
    @AllUsersScope bit,
    @ApplicationName NVARCHAR(256),
    @Count int OUT)
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
        SELECT @Count = 0
    ELSE
    BEGIN
        IF (@AllUsersScope = 1)
            DELETE FROM aspnet_PersonalizationAllUsers
            WHERE PathId IN
               (SELECT Paths.PathId
                FROM dbo.aspnet_Paths Paths
                WHERE Paths.ApplicationId = @ApplicationId)
        ELSE
            DELETE FROM aspnet_PersonalizationPerUser
            WHERE PathId IN
               (SELECT Paths.PathId
                FROM dbo.aspnet_Paths Paths
                WHERE Paths.ApplicationId = @ApplicationId)

        SELECT @Count = @@ROWCOUNT
    END
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationPerUser_SetPageSettings]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationPerUser_SetPageSettings] (
    @ApplicationName  NVARCHAR(256),
    @UserName         NVARCHAR(256),
    @Path             NVARCHAR(256),
    @PageSettings     IMAGE,
    @CurrentTimeUtc   DATETIME)
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    DECLARE @PathId UNIQUEIDENTIFIER
    DECLARE @UserId UNIQUEIDENTIFIER

    SELECT @ApplicationId = NULL
    SELECT @PathId = NULL
    SELECT @UserId = NULL

    EXEC dbo.aspnet_Applications_CreateApplication @ApplicationName, @ApplicationId OUTPUT

    SELECT @PathId = u.PathId FROM dbo.aspnet_Paths u WHERE u.ApplicationId = @ApplicationId AND u.LoweredPath = LOWER(@Path)
    IF (@PathId IS NULL)
    BEGIN
        EXEC dbo.aspnet_Paths_CreatePath @ApplicationId, @Path, @PathId OUTPUT
    END

    SELECT @UserId = u.UserId FROM dbo.aspnet_Users u WHERE u.ApplicationId = @ApplicationId AND u.LoweredUserName = LOWER(@UserName)
    IF (@UserId IS NULL)
    BEGIN
        EXEC dbo.aspnet_Users_CreateUser @ApplicationId, @UserName, 0, @CurrentTimeUtc, @UserId OUTPUT
    END

    UPDATE   dbo.aspnet_Users WITH (ROWLOCK)
    SET      LastActivityDate = @CurrentTimeUtc
    WHERE    UserId = @UserId
    IF (@@ROWCOUNT = 0) -- Username not found
        RETURN

    IF (EXISTS(SELECT PathId FROM dbo.aspnet_PersonalizationPerUser WHERE UserId = @UserId AND PathId = @PathId))
        UPDATE dbo.aspnet_PersonalizationPerUser SET PageSettings = @PageSettings, LastUpdatedDate = @CurrentTimeUtc WHERE UserId = @UserId AND PathId = @PathId
    ELSE
        INSERT INTO dbo.aspnet_PersonalizationPerUser(UserId, PathId, PageSettings, LastUpdatedDate) VALUES (@UserId, @PathId, @PageSettings, @CurrentTimeUtc)
    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationPerUser_ResetPageSettings]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationPerUser_ResetPageSettings] (
    @ApplicationName  NVARCHAR(256),
    @UserName         NVARCHAR(256),
    @Path             NVARCHAR(256),
    @CurrentTimeUtc   DATETIME)
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    DECLARE @PathId UNIQUEIDENTIFIER
    DECLARE @UserId UNIQUEIDENTIFIER

    SELECT @ApplicationId = NULL
    SELECT @PathId = NULL
    SELECT @UserId = NULL

    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
    BEGIN
        RETURN
    END

    SELECT @PathId = u.PathId FROM dbo.aspnet_Paths u WHERE u.ApplicationId = @ApplicationId AND u.LoweredPath = LOWER(@Path)
    IF (@PathId IS NULL)
    BEGIN
        RETURN
    END

    SELECT @UserId = u.UserId FROM dbo.aspnet_Users u WHERE u.ApplicationId = @ApplicationId AND u.LoweredUserName = LOWER(@UserName)
    IF (@UserId IS NULL)
    BEGIN
        RETURN
    END

    UPDATE   dbo.aspnet_Users WITH (ROWLOCK)
    SET      LastActivityDate = @CurrentTimeUtc
    WHERE    UserId = @UserId
    IF (@@ROWCOUNT = 0) -- Username not found
        RETURN

    DELETE FROM dbo.aspnet_PersonalizationPerUser WHERE PathId = @PathId AND UserId = @UserId
    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationPerUser_GetPageSettings]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationPerUser_GetPageSettings] (
    @ApplicationName  NVARCHAR(256),
    @UserName         NVARCHAR(256),
    @Path             NVARCHAR(256),
    @CurrentTimeUtc   DATETIME)
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    DECLARE @PathId UNIQUEIDENTIFIER
    DECLARE @UserId UNIQUEIDENTIFIER

    SELECT @ApplicationId = NULL
    SELECT @PathId = NULL
    SELECT @UserId = NULL

    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
    BEGIN
        RETURN
    END

    SELECT @PathId = u.PathId FROM dbo.aspnet_Paths u WHERE u.ApplicationId = @ApplicationId AND u.LoweredPath = LOWER(@Path)
    IF (@PathId IS NULL)
    BEGIN
        RETURN
    END

    SELECT @UserId = u.UserId FROM dbo.aspnet_Users u WHERE u.ApplicationId = @ApplicationId AND u.LoweredUserName = LOWER(@UserName)
    IF (@UserId IS NULL)
    BEGIN
        RETURN
    END

    UPDATE   dbo.aspnet_Users WITH (ROWLOCK)
    SET      LastActivityDate = @CurrentTimeUtc
    WHERE    UserId = @UserId
    IF (@@ROWCOUNT = 0) -- Username not found
        RETURN

    SELECT p.PageSettings FROM dbo.aspnet_PersonalizationPerUser p WHERE p.PathId = @PathId AND p.UserId = @UserId
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAllUsers_SetPageSettings]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAllUsers_SetPageSettings] (
    @ApplicationName  NVARCHAR(256),
    @Path             NVARCHAR(256),
    @PageSettings     IMAGE,
    @CurrentTimeUtc   DATETIME)
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    DECLARE @PathId UNIQUEIDENTIFIER

    SELECT @ApplicationId = NULL
    SELECT @PathId = NULL

    EXEC dbo.aspnet_Applications_CreateApplication @ApplicationName, @ApplicationId OUTPUT

    SELECT @PathId = u.PathId FROM dbo.aspnet_Paths u WHERE u.ApplicationId = @ApplicationId AND u.LoweredPath = LOWER(@Path)
    IF (@PathId IS NULL)
    BEGIN
        EXEC dbo.aspnet_Paths_CreatePath @ApplicationId, @Path, @PathId OUTPUT
    END

    IF (EXISTS(SELECT PathId FROM dbo.aspnet_PersonalizationAllUsers WHERE PathId = @PathId))
        UPDATE dbo.aspnet_PersonalizationAllUsers SET PageSettings = @PageSettings, LastUpdatedDate = @CurrentTimeUtc WHERE PathId = @PathId
    ELSE
        INSERT INTO dbo.aspnet_PersonalizationAllUsers(PathId, PageSettings, LastUpdatedDate) VALUES (@PathId, @PageSettings, @CurrentTimeUtc)
    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAllUsers_ResetPageSettings]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAllUsers_ResetPageSettings] (
    @ApplicationName  NVARCHAR(256),
    @Path              NVARCHAR(256))
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    DECLARE @PathId UNIQUEIDENTIFIER

    SELECT @ApplicationId = NULL
    SELECT @PathId = NULL

    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
    BEGIN
        RETURN
    END

    SELECT @PathId = u.PathId FROM dbo.aspnet_Paths u WHERE u.ApplicationId = @ApplicationId AND u.LoweredPath = LOWER(@Path)
    IF (@PathId IS NULL)
    BEGIN
        RETURN
    END

    DELETE FROM dbo.aspnet_PersonalizationAllUsers WHERE PathId = @PathId
    RETURN 0
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_PersonalizationAllUsers_GetPageSettings]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_PersonalizationAllUsers_GetPageSettings] (
    @ApplicationName  NVARCHAR(256),
    @Path              NVARCHAR(256))
AS
BEGIN
    DECLARE @ApplicationId UNIQUEIDENTIFIER
    DECLARE @PathId UNIQUEIDENTIFIER

    SELECT @ApplicationId = NULL
    SELECT @PathId = NULL

    EXEC dbo.aspnet_Personalization_GetApplicationId @ApplicationName, @ApplicationId OUTPUT
    IF (@ApplicationId IS NULL)
    BEGIN
        RETURN
    END

    SELECT @PathId = u.PathId FROM dbo.aspnet_Paths u WHERE u.ApplicationId = @ApplicationId AND u.LoweredPath = LOWER(@Path)
    IF (@PathId IS NULL)
    BEGIN
        RETURN
    END

    SELECT p.PageSettings FROM dbo.aspnet_PersonalizationAllUsers p WHERE p.PathId = @PathId
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Profile_SetProperties]    Script Date: 12/09/2013 11:06:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Profile_SetProperties]
    @ApplicationName        nvarchar(256),
    @PropertyNames          ntext,
    @PropertyValuesString   ntext,
    @PropertyValuesBinary   image,
    @UserName               nvarchar(256),
    @IsUserAnonymous        bit,
    @CurrentTimeUtc         datetime
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL

    DECLARE @ErrorCode     int
    SET @ErrorCode = 0

    DECLARE @TranStarted   bit
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
       BEGIN TRANSACTION
       SET @TranStarted = 1
    END
    ELSE
    	SET @TranStarted = 0

    EXEC dbo.aspnet_Applications_CreateApplication @ApplicationName, @ApplicationId OUTPUT

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    DECLARE @UserId uniqueidentifier
    DECLARE @LastActivityDate datetime
    SELECT  @UserId = NULL
    SELECT  @LastActivityDate = @CurrentTimeUtc

    SELECT @UserId = UserId
    FROM   dbo.aspnet_Users
    WHERE  ApplicationId = @ApplicationId AND LoweredUserName = LOWER(@UserName)
    IF (@UserId IS NULL)
        EXEC dbo.aspnet_Users_CreateUser @ApplicationId, @UserName, @IsUserAnonymous, @LastActivityDate, @UserId OUTPUT

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    UPDATE dbo.aspnet_Users
    SET    LastActivityDate=@CurrentTimeUtc
    WHERE  UserId = @UserId

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF (EXISTS( SELECT *
               FROM   dbo.aspnet_Profile
               WHERE  UserId = @UserId))
        UPDATE dbo.aspnet_Profile
        SET    PropertyNames=@PropertyNames, PropertyValuesString = @PropertyValuesString,
               PropertyValuesBinary = @PropertyValuesBinary, LastUpdatedDate=@CurrentTimeUtc
        WHERE  UserId = @UserId
    ELSE
        INSERT INTO dbo.aspnet_Profile(UserId, PropertyNames, PropertyValuesString, PropertyValuesBinary, LastUpdatedDate)
             VALUES (@UserId, @PropertyNames, @PropertyValuesString, @PropertyValuesBinary, @CurrentTimeUtc)

    IF( @@ERROR <> 0 )
    BEGIN
        SET @ErrorCode = -1
        GOTO Cleanup
    END

    IF( @TranStarted = 1 )
    BEGIN
    	SET @TranStarted = 0
    	COMMIT TRANSACTION
    END

    RETURN 0

Cleanup:

    IF( @TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
    	ROLLBACK TRANSACTION
    END

    RETURN @ErrorCode

END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Profile_GetProperties]    Script Date: 12/09/2013 11:06:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Profile_GetProperties]
    @ApplicationName      nvarchar(256),
    @UserName             nvarchar(256),
    @CurrentTimeUtc       datetime
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM dbo.aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN

    DECLARE @UserId uniqueidentifier
    SELECT  @UserId = NULL

    SELECT @UserId = UserId
    FROM   dbo.aspnet_Users
    WHERE  ApplicationId = @ApplicationId AND LoweredUserName = LOWER(@UserName)

    IF (@UserId IS NULL)
        RETURN
    SELECT TOP 1 PropertyNames, PropertyValuesString, PropertyValuesBinary
    FROM         dbo.aspnet_Profile
    WHERE        UserId = @UserId

    IF (@@ROWCOUNT > 0)
    BEGIN
        UPDATE dbo.aspnet_Users
        SET    LastActivityDate=@CurrentTimeUtc
        WHERE  UserId = @UserId
    END
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Profile_GetProfiles]    Script Date: 12/09/2013 11:06:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Profile_GetProfiles]
    @ApplicationName        nvarchar(256),
    @ProfileAuthOptions     int,
    @PageIndex              int,
    @PageSize               int,
    @UserNameToMatch        nvarchar(256) = NULL,
    @InactiveSinceDate      datetime      = NULL
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
        RETURN

    -- Set the page bounds
    DECLARE @PageLowerBound int
    DECLARE @PageUpperBound int
    DECLARE @TotalRecords   int
    SET @PageLowerBound = @PageSize * @PageIndex
    SET @PageUpperBound = @PageSize - 1 + @PageLowerBound

    -- Create a temp table TO store the select results
    CREATE TABLE #PageIndexForUsers
    (
        IndexId int IDENTITY (0, 1) NOT NULL,
        UserId uniqueidentifier
    )

    -- Insert into our temp table
    INSERT INTO #PageIndexForUsers (UserId)
        SELECT  u.UserId
        FROM    dbo.aspnet_Users u, dbo.aspnet_Profile p
        WHERE   ApplicationId = @ApplicationId
            AND u.UserId = p.UserId
            AND (@InactiveSinceDate IS NULL OR LastActivityDate <= @InactiveSinceDate)
            AND (     (@ProfileAuthOptions = 2)
                   OR (@ProfileAuthOptions = 0 AND IsAnonymous = 1)
                   OR (@ProfileAuthOptions = 1 AND IsAnonymous = 0)
                 )
            AND (@UserNameToMatch IS NULL OR LoweredUserName LIKE LOWER(@UserNameToMatch))
        ORDER BY UserName

    SELECT  u.UserName, u.IsAnonymous, u.LastActivityDate, p.LastUpdatedDate,
            DATALENGTH(p.PropertyNames) + DATALENGTH(p.PropertyValuesString) + DATALENGTH(p.PropertyValuesBinary)
    FROM    dbo.aspnet_Users u, dbo.aspnet_Profile p, #PageIndexForUsers i
    WHERE   u.UserId = p.UserId AND p.UserId = i.UserId AND i.IndexId >= @PageLowerBound AND i.IndexId <= @PageUpperBound

    SELECT COUNT(*)
    FROM   #PageIndexForUsers

    DROP TABLE #PageIndexForUsers
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Profile_GetNumberOfInactiveProfiles]    Script Date: 12/09/2013 11:06:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Profile_GetNumberOfInactiveProfiles]
    @ApplicationName        nvarchar(256),
    @ProfileAuthOptions     int,
    @InactiveSinceDate      datetime
AS
BEGIN
    DECLARE @ApplicationId uniqueidentifier
    SELECT  @ApplicationId = NULL
    SELECT  @ApplicationId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    IF (@ApplicationId IS NULL)
    BEGIN
        SELECT 0
        RETURN
    END

    SELECT  COUNT(*)
    FROM    dbo.aspnet_Users u, dbo.aspnet_Profile p
    WHERE   ApplicationId = @ApplicationId
        AND u.UserId = p.UserId
        AND (LastActivityDate <= @InactiveSinceDate)
        AND (
                (@ProfileAuthOptions = 2)
                OR (@ProfileAuthOptions = 0 AND IsAnonymous = 1)
                OR (@ProfileAuthOptions = 1 AND IsAnonymous = 0)
            )
END
GO
/****** Object:  StoredProcedure [dbo].[aspnet_Profile_DeleteProfiles]    Script Date: 12/09/2013 11:06:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[aspnet_Profile_DeleteProfiles]
    @ApplicationName        nvarchar(256),
    @UserNames              nvarchar(4000)
AS
BEGIN
    DECLARE @UserName     nvarchar(256)
    DECLARE @CurrentPos   int
    DECLARE @NextPos      int
    DECLARE @NumDeleted   int
    DECLARE @DeletedUser  int
    DECLARE @TranStarted  bit
    DECLARE @ErrorCode    int

    SET @ErrorCode = 0
    SET @CurrentPos = 1
    SET @NumDeleted = 0
    SET @TranStarted = 0

    IF( @@TRANCOUNT = 0 )
    BEGIN
        BEGIN TRANSACTION
        SET @TranStarted = 1
    END
    ELSE
    	SET @TranStarted = 0

    WHILE (@CurrentPos <= LEN(@UserNames))
    BEGIN
        SELECT @NextPos = CHARINDEX(N',', @UserNames,  @CurrentPos)
        IF (@NextPos = 0 OR @NextPos IS NULL)
            SELECT @NextPos = LEN(@UserNames) + 1

        SELECT @UserName = SUBSTRING(@UserNames, @CurrentPos, @NextPos - @CurrentPos)
        SELECT @CurrentPos = @NextPos+1

        IF (LEN(@UserName) > 0)
        BEGIN
            SELECT @DeletedUser = 0
            EXEC dbo.aspnet_Users_DeleteUser @ApplicationName, @UserName, 4, @DeletedUser OUTPUT
            IF( @@ERROR <> 0 )
            BEGIN
                SET @ErrorCode = -1
                GOTO Cleanup
            END
            IF (@DeletedUser <> 0)
                SELECT @NumDeleted = @NumDeleted + 1
        END
    END
    SELECT @NumDeleted
    IF (@TranStarted = 1)
    BEGIN
    	SET @TranStarted = 0
    	COMMIT TRANSACTION
    END
    SET @TranStarted = 0

    RETURN 0

Cleanup:
    IF (@TranStarted = 1 )
    BEGIN
        SET @TranStarted = 0
    	ROLLBACK TRANSACTION
    END
    RETURN @ErrorCode
END
GO
/****** Object:  Default [DF__aspnet_Ap__Appli__09A971A2]    Script Date: 12/09/2013 11:06:43 ******/
ALTER TABLE [dbo].[aspnet_Applications] ADD  DEFAULT (newid()) FOR [ApplicationId]
GO
/****** Object:  Default [DF__aspnet_Us__UserI__0A9D95DB]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Users] ADD  DEFAULT (newid()) FOR [UserId]
GO
/****** Object:  Default [DF__aspnet_Us__Mobil__0B91BA14]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Users] ADD  DEFAULT (NULL) FOR [MobileAlias]
GO
/****** Object:  Default [DF__aspnet_Us__IsAno__0C85DE4D]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Users] ADD  DEFAULT ((0)) FOR [IsAnonymous]
GO
/****** Object:  Default [DF__aspnet_Pa__PathI__0D7A0286]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Paths] ADD  DEFAULT (newid()) FOR [PathId]
GO
/****** Object:  Default [DF__aspnet_Ro__RoleI__0E6E26BF]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Roles] ADD  DEFAULT (newid()) FOR [RoleId]
GO
/****** Object:  Default [DF__aspnet_Perso__Id__0F624AF8]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_PersonalizationPerUser] ADD  DEFAULT (newid()) FOR [Id]
GO
/****** Object:  Default [DF__aspnet_Me__Passw__10566F31]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Membership] ADD  DEFAULT ((0)) FOR [PasswordFormat]
GO
/****** Object:  ForeignKey [FK_MetadataTableAttributeValues_MetadataTableAttributes]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[MetadataTableAttributeValues]  WITH CHECK ADD  CONSTRAINT [FK_MetadataTableAttributeValues_MetadataTableAttributes] FOREIGN KEY([TableAttributeId])
REFERENCES [dbo].[MetadataTableAttributes] ([TableAttributeId])
ON UPDATE CASCADE
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[MetadataTableAttributeValues] CHECK CONSTRAINT [FK_MetadataTableAttributeValues_MetadataTableAttributes]
GO
/****** Object:  ForeignKey [FK_MetadataTableAttributeValues_MetadataTables]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[MetadataTableAttributeValues]  WITH CHECK ADD  CONSTRAINT [FK_MetadataTableAttributeValues_MetadataTables] FOREIGN KEY([TableId])
REFERENCES [dbo].[MetadataTables] ([TableId])
ON UPDATE CASCADE
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[MetadataTableAttributeValues] CHECK CONSTRAINT [FK_MetadataTableAttributeValues_MetadataTables]
GO
/****** Object:  ForeignKey [FK__aspnet_Us__Appli__1332DBDC]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Users]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Us__Appli__14270015]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Users]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pa__Appli__151B244E]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Paths]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pa__Appli__160F4887]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Paths]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Ro__Appli__17036CC0]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Roles]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Ro__Appli__17F790F9]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Roles]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pe__PathI__18EBB532]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_PersonalizationPerUser]  WITH CHECK ADD FOREIGN KEY([PathId])
REFERENCES [dbo].[aspnet_Paths] ([PathId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pe__PathI__19DFD96B]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_PersonalizationPerUser]  WITH CHECK ADD FOREIGN KEY([PathId])
REFERENCES [dbo].[aspnet_Paths] ([PathId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pe__UserI__1AD3FDA4]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_PersonalizationPerUser]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pe__UserI__1BC821DD]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_PersonalizationPerUser]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pr__UserI__1CBC4616]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Profile]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pr__UserI__1DB06A4F]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Profile]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
/****** Object:  ForeignKey [FK__aspnet_Me__Appli__1EA48E88]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Membership]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Me__Appli__1F98B2C1]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Membership]  WITH CHECK ADD FOREIGN KEY([ApplicationId])
REFERENCES [dbo].[aspnet_Applications] ([ApplicationId])
GO
/****** Object:  ForeignKey [FK__aspnet_Me__UserI__208CD6FA]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Membership]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
/****** Object:  ForeignKey [FK__aspnet_Me__UserI__2180FB33]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_Membership]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pe__PathI__22751F6C]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_PersonalizationAllUsers]  WITH CHECK ADD FOREIGN KEY([PathId])
REFERENCES [dbo].[aspnet_Paths] ([PathId])
GO
/****** Object:  ForeignKey [FK__aspnet_Pe__PathI__236943A5]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_PersonalizationAllUsers]  WITH CHECK ADD FOREIGN KEY([PathId])
REFERENCES [dbo].[aspnet_Paths] ([PathId])
GO
/****** Object:  ForeignKey [FK__aspnet_Us__RoleI__245D67DE]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_UsersInRoles]  WITH CHECK ADD FOREIGN KEY([RoleId])
REFERENCES [dbo].[aspnet_Roles] ([RoleId])
GO
/****** Object:  ForeignKey [FK__aspnet_Us__RoleI__25518C17]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_UsersInRoles]  WITH CHECK ADD FOREIGN KEY([RoleId])
REFERENCES [dbo].[aspnet_Roles] ([RoleId])
GO
/****** Object:  ForeignKey [FK__aspnet_Us__UserI__2645B050]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_UsersInRoles]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
/****** Object:  ForeignKey [FK__aspnet_Us__UserI__2739D489]    Script Date: 12/09/2013 11:06:45 ******/
ALTER TABLE [dbo].[aspnet_UsersInRoles]  WITH CHECK ADD FOREIGN KEY([UserId])
REFERENCES [dbo].[aspnet_Users] ([UserId])
GO
